Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeunier28 committed Aug 7, 2023
1 parent c80c5e7 commit b2e9308
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postgres/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ def wait(self, timeout=None):
while self.count > 0:
self.cv.wait()
else:

def timeout_callback():
self.timeout_event.set()

timer = threading.Timer(timeout, timeout_callback)
timer.start()
while self.count > 0 and not self.timeout_event.is_set():
Expand Down

0 comments on commit b2e9308

Please sign in to comment.