Skip to content

Commit

Permalink
additional time
Browse files Browse the repository at this point in the history
  • Loading branch information
siyangqiu committed Apr 4, 2024
1 parent d7814eb commit 46b373c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 46b373c

Please sign in to comment.