improve test for dummy0 up
if we run off the end of the events fixture, it didn't work
This commit is contained in:
parent
e1b932ec27
commit
725af00dc9
1 changed files with 5 additions and 1 deletions
|
@ -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")))
|
||||
|
|
Loading…
Reference in a new issue