UT: Double sleep time to prevent false failures

This commit is contained in:
Mike Salvatore 2022-09-14 14:16:33 -04:00
parent 0ea1f9576f
commit 2155e9681e
1 changed files with 3 additions and 3 deletions

View File

@ -26,11 +26,11 @@ def test_send_events(event_sender):
for _ in range(5):
event_sender.add_event_to_queue({})
time.sleep(0.01)
time.sleep(0.02)
assert mock.call_count == 1
event_sender.add_event_to_queue({})
time.sleep(0.01)
time.sleep(0.02)
assert mock.call_count == 2
event_sender.stop()
@ -44,7 +44,7 @@ def test_send_remaining_events(event_sender):
for _ in range(5):
event_sender.add_event_to_queue({})
time.sleep(0.01)
time.sleep(0.02)
assert mock.call_count == 1
event_sender.add_event_to_queue({})