Skip to content

Commit

Permalink
Remove unnecessary while loop
Browse files Browse the repository at this point in the history
This isn't needed as we turn asynchronous delivery off so the loop will
only be entered if the delivery fails and that causes an infinite loop!
  • Loading branch information
imjoehaines committed Dec 6, 2023
1 parent 8be51a9 commit a0bd952
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_sessiontracker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import time
import logging
import platform

Expand Down Expand Up @@ -83,8 +82,8 @@ def test_session_middleware_attaches_session_to_event(self):

client.session_tracker.start_session()
client.notify(Exception("Test"))
while len(self.server.received) == 0:
time.sleep(0.5)

assert len(self.server.received) == 1

json_body = self.server.received[0]['json_body']
session = json_body['events'][0]['session']
Expand Down

0 comments on commit a0bd952

Please sign in to comment.