improve test for dummy0 up

if we run off the end of the events fixture, it didn't work
This commit is contained in:
Daniel Barlow 2024-03-05 23:22:46 +00:00
parent e1b932ec27
commit 725af00dc9

View file

@ -18,4 +18,8 @@
(ifwait.run #(event-generator (file-events "events-fixture"))) (let [gen (event-generator (file-events "events-fixture"))]
(ifwait.run #gen)
(match (pcall gen)
(true _) true
(false msg) (error "didn't detect dummy0 up event")))