diff --git a/tests/test_session.py b/tests/test_session.py index be91f310..152ef835 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -29,7 +29,7 @@ def test_session(self, mock_req): assert len(mock_req.request_history) == 1 agentops.record(ActionEvent(self.event_type)) - time.sleep(0.1) + time.sleep(0.5) # We should have 3 requests (session and 2 events) assert len(mock_req.request_history) == 3 @@ -39,7 +39,7 @@ def test_session(self, mock_req): end_state = 'Success' agentops.end_session(end_state) - time.sleep(0.1) + time.sleep(0.5) # We should have 4 requests (additional end session) assert len(mock_req.request_history) == 4 @@ -55,7 +55,7 @@ def test_tags(self, mock_req): # Act agentops.record(ActionEvent(self.event_type)) - time.sleep(0.1) + time.sleep(0.5) # Assert 2 requests - 1 for session init, 1 for event assert len(mock_req.request_history) == 2 @@ -66,7 +66,7 @@ def test_tags(self, mock_req): # Act end_state = 'Success' agentops.end_session(end_state) - time.sleep(0.1) + time.sleep(0.5) # Assert 3 requets, 1 for session init, 1 for event, 1 for end session assert len(mock_req.request_history) == 3