UT: Double sleep time to prevent false failures
This commit is contained in:
parent
0ea1f9576f
commit
2155e9681e
|
@ -26,11 +26,11 @@ def test_send_events(event_sender):
|
||||||
|
|
||||||
for _ in range(5):
|
for _ in range(5):
|
||||||
event_sender.add_event_to_queue({})
|
event_sender.add_event_to_queue({})
|
||||||
time.sleep(0.01)
|
time.sleep(0.02)
|
||||||
assert mock.call_count == 1
|
assert mock.call_count == 1
|
||||||
|
|
||||||
event_sender.add_event_to_queue({})
|
event_sender.add_event_to_queue({})
|
||||||
time.sleep(0.01)
|
time.sleep(0.02)
|
||||||
assert mock.call_count == 2
|
assert mock.call_count == 2
|
||||||
|
|
||||||
event_sender.stop()
|
event_sender.stop()
|
||||||
|
@ -44,7 +44,7 @@ def test_send_remaining_events(event_sender):
|
||||||
|
|
||||||
for _ in range(5):
|
for _ in range(5):
|
||||||
event_sender.add_event_to_queue({})
|
event_sender.add_event_to_queue({})
|
||||||
time.sleep(0.01)
|
time.sleep(0.02)
|
||||||
assert mock.call_count == 1
|
assert mock.call_count == 1
|
||||||
|
|
||||||
event_sender.add_event_to_queue({})
|
event_sender.add_event_to_queue({})
|
||||||
|
|
Loading…
Reference in New Issue