From 218363d40ed96ca705608eee62d6f56d916b9e65 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 14 Sep 2022 19:59:19 +0530 Subject: [PATCH] UT: Reduce sleep time from 0.1 to 0.05 in test_agent_event_forwarder.py --- .../infection_monkey/test_agent_event_forwarder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/tests/unit_tests/infection_monkey/test_agent_event_forwarder.py b/monkey/tests/unit_tests/infection_monkey/test_agent_event_forwarder.py index 5762c456f..ed73ec669 100644 --- a/monkey/tests/unit_tests/infection_monkey/test_agent_event_forwarder.py +++ b/monkey/tests/unit_tests/infection_monkey/test_agent_event_forwarder.py @@ -21,11 +21,11 @@ def test_send_events(event_sender): for _ in range(5): event_sender.add_event_to_queue({}) - time.sleep(0.1) + time.sleep(0.05) assert mock.call_count == 1 event_sender.add_event_to_queue({}) - time.sleep(0.1) + time.sleep(0.05) assert mock.call_count == 2 event_sender.stop() @@ -39,7 +39,7 @@ def test_send_remaining_events(event_sender): for _ in range(5): event_sender.add_event_to_queue({}) - time.sleep(0.1) + time.sleep(0.05) assert mock.call_count == 1 event_sender.add_event_to_queue({})