Skip to content

Commit

Permalink
tests: decrease asyncio task wait timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
truenicoco committed Apr 13, 2023
1 parent d077599 commit d367b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slidge/util/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ def check(self, stanza, criteria, method="exact", defaults=None, use_values=True
)
self.assertTrue(result, debug)

def next_sent(self):
def next_sent(self, timeout=0.05):
self.wait_for_send_queue()
sent = self.xmpp.socket.next_sent(timeout=1)
sent = self.xmpp.socket.next_sent(timeout=timeout)
if sent is None:
return None
xml = self.parse_xml(sent)
Expand Down

0 comments on commit d367b3d

Please sign in to comment.