diff --git a/experimental/devices/gpioutil/debounce_test.go b/experimental/devices/gpioutil/debounce_test.go index 8fcf85f48..75a18aeb0 100644 --- a/experimental/devices/gpioutil/debounce_test.go +++ b/experimental/devices/gpioutil/debounce_test.go @@ -86,7 +86,7 @@ func TestDebounce_WaitForEdge_Got(t *testing.T) { t.Fatal(err) } f.EdgesChan <- gpio.Low - if !p.WaitForEdge(0) { + if !p.WaitForEdge(-1) { t.Fatal("expected edge") } }