Skip to content

Commit 423154d

Browse files
committed
primitives/tests/event_test.py: Improve ESwitch test.
1 parent 8bceccf commit 423154d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

v3/primitives/tests/event_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ async def stest(sw, verbose):
152152
tasks = []
153153
for n, evt in enumerate(events):
154154
tasks.append(asyncio.create_task(monitor(evt, 1 << 3 * n, verbose)))
155-
await pulse(1000)
155+
asyncio.create_task(pulse(2000))
156+
await asyncio.sleep(1)
157+
expect(val, 0x08)
156158
await asyncio.sleep(4) # Wait for any spurious events
157159
verbose and print("Switch close and open", hex(val))
158160
expect(val, 0x09)

0 commit comments

Comments
 (0)