Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(profiling): check for thread presence rather than number of threads #1357

Merged
merged 3 commits into from
Apr 14, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/profiling/test_periodic.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _on_shutdown():
t.join()
assert x["OK"]
assert x["DOWN"]
assert len(_periodic.PERIODIC_THREAD_IDS) == 0
assert t.ident not in _periodic.PERIODIC_THREAD_IDS


def test_periodic_error():
Expand All @@ -45,7 +45,7 @@ def _on_shutdown():
t.stop()
t.join()
assert "DOWN" not in x
assert len(_periodic.PERIODIC_THREAD_IDS) == 0
assert t.ident not in _periodic.PERIODIC_THREAD_IDS


def test_gevent_class():
Expand Down