Change test that randomly fails on Travis.

This commit is contained in:
grossmj 2018-11-17 23:23:28 +07:00
parent 3512fde841
commit 53f3821d41

View File

@ -49,11 +49,9 @@ def test_exception_wait_run_in_executor(loop):
def test_subprocess_check_output(loop, tmpdir, restore_original_path):
path = str(tmpdir / "test")
with open(path, "w+") as f:
f.write("TEST")
exec = subprocess_check_output("cat", path)
exec = subprocess_check_output("echo", "-n", path)
result = loop.run_until_complete(asyncio.ensure_future(exec))
assert result == "TEST"
assert result == path
def test_wait_for_process_termination(loop):