From 725af00dc93720b470d20c799e9fb866159080a6 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 5 Mar 2024 23:22:46 +0000 Subject: [PATCH] improve test for dummy0 up if we run off the end of the events fixture, it didn't work --- pkgs/ifwait/test-ifwait.fnl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/ifwait/test-ifwait.fnl b/pkgs/ifwait/test-ifwait.fnl index 03dca1a..67b8ac5 100644 --- a/pkgs/ifwait/test-ifwait.fnl +++ b/pkgs/ifwait/test-ifwait.fnl @@ -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")))