UT: Reduce sleep time from 0.1 to 0.05 in test_agent_event_forwarder.py

This commit is contained in:
Shreya Malviya 2022-09-14 19:59:19 +05:30
parent 5c1613bc79
commit 218363d40e
1 changed files with 3 additions and 3 deletions

View File

@ -21,11 +21,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.1) time.sleep(0.05)
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.1) time.sleep(0.05)
assert mock.call_count == 2 assert mock.call_count == 2
event_sender.stop() event_sender.stop()
@ -39,7 +39,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.1) time.sleep(0.05)
assert mock.call_count == 1 assert mock.call_count == 1
event_sender.add_event_to_queue({}) event_sender.add_event_to_queue({})