[Core] Fix test_logging_to_driver (#9829)

* Fixed

* .

* .

Co-authored-by: Ubuntu <ubuntu@ip-172-31-7-236.us-west-2.compute.internal>
This commit is contained in:
Alex Wu
2020-08-03 12:52:24 -07:00
committed by SangBin Cho
parent a96ddec358
commit b58e4b5ee4
+4 -11
View File
@@ -211,14 +211,9 @@ def test_logging_to_driver(shutdown_only):
ray.get(f.remote())
time.sleep(1)
output_lines = captured["out"]
err_lines = captured["err"]
for i in range(200):
assert str(i) in output_lines
# TODO(rkn): Check that no additional logs appear beyond what we expect
# and that there are no duplicate logs. Once we address the issue
# described in https://github.com/ray-project/ray/pull/5462, we should
# also check that nothing is logged to stderr.
assert str(i) in err_lines
def test_not_logging_to_driver(shutdown_only):
@@ -240,10 +235,8 @@ def test_not_logging_to_driver(shutdown_only):
output_lines = captured["out"]
assert len(output_lines) == 0
# TODO(rkn): Check that no additional logs appear beyond what we expect
# and that there are no duplicate logs. Once we address the issue
# described in https://github.com/ray-project/ray/pull/5462, we should
# also check that nothing is logged to stderr.
err_lines = captured["err"]
assert len(err_lines) == 0
@pytest.mark.skipif(