Skip to content

Commit

Permalink
no extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Jul 18, 2024
1 parent a83fc3e commit 9904fa7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/units/test_metronome.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,22 +273,3 @@ def test_numbers_of_threads_into_context_manager():
assert count_before + 1 == active_count()

assert count_before == active_count()


def test_double_running_of_one_metronome_is_possible():
actions = []
metronome = Metronome(0.1, lambda: (actions.append(1), sleep(0.0001)), sleeping_callback=lambda x: actions.append(2))

metronome.start()
sleep(0.1)
metronome.stop()

assert actions

lenth_after_first_running = len(actions)

metronome.start()
sleep(0.1)
metronome.stop()

assert len(actions) > lenth_after_first_running

0 comments on commit 9904fa7

Please sign in to comment.