Fix test_logging_to_driver and test_not_logging_to_driver (#5462)

This commit is contained in:
Hao Chen
2019-08-17 18:06:08 +08:00
committed by GitHub
parent 657ce4b3c7
commit 03d05c8765
+10 -4
View File
@@ -2681,8 +2681,11 @@ def test_logging_to_driver(shutdown_only):
output_lines = captured["out"]
for i in range(200):
assert str(i) in output_lines
error_lines = captured["err"]
assert len(error_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.
def test_not_logging_to_driver(shutdown_only):
@@ -2703,8 +2706,11 @@ def test_not_logging_to_driver(shutdown_only):
output_lines = captured["out"]
assert len(output_lines) == 0
error_lines = captured["err"]
assert len(error_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.
@pytest.mark.skipif(