Skip to content

Commit

Permalink
fix: Flaky test for threaded code
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Dec 8, 2019
1 parent 932577a commit 85d02df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/cli/test_commands.py
Expand Up @@ -623,7 +623,12 @@ def assert_threaded_executor_interruption(lines, expected):
# way around
assert lines[10] in expected
assert "!! KeyboardInterrupt !!" in lines[11]
assert "== SUMMARY ==" in lines[13]
if "F" in lines[10]:
assert "=== FAILURES ===" in lines[12]
position = 24
else:
position = 13
assert "== SUMMARY ==" in lines[position]


@pytest.mark.parametrize("workers", (1, 2))
Expand Down

0 comments on commit 85d02df

Please sign in to comment.