Skip to content

Commit 9fbb432

Browse files
committed
Fiddle with timing
1 parent 2056bd8 commit 9fbb432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/test_snowsignal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ async def test_fragments_rebroadcast(self, mock_datagram_received: unittest.mock
184184
main_task = asyncio.create_task(snowsignal.main("--target-interface=eth0 -ll=debug", loop_forever=True))
185185

186186
# Give time for setup to happen
187-
await asyncio.sleep(1)
187+
await asyncio.sleep(0.1)
188188

189189
# Send a fragmented UDP message. We ensure fragmentation by making the message payload long
190190
toolong_msg = b""
@@ -193,7 +193,7 @@ async def test_fragments_rebroadcast(self, mock_datagram_received: unittest.mock
193193
self.send_udp_broadcast(toolong_msg, broadcast_address)
194194

195195
# And some time for packets to fly around
196-
await asyncio.sleep(0.25)
196+
await asyncio.sleep(0.5)
197197

198198
# Then test if it all worked! We attempt to reassemble the packet payload from the fragments
199199
# by looping throuhg the calls to datagram_received and examining the data argument

0 commit comments

Comments
 (0)