gpioutil: fix a race condition in TestDebounce_WaitForEdge_Got

pull/1/head
Marc-Antoine Ruel 8 years ago
parent 717ef921fa
commit d3144fa1d2

@ -86,7 +86,7 @@ func TestDebounce_WaitForEdge_Got(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
f.EdgesChan <- gpio.Low f.EdgesChan <- gpio.Low
if !p.WaitForEdge(0) { if !p.WaitForEdge(-1) {
t.Fatal("expected edge") t.Fatal("expected edge")
} }
} }

Loading…
Cancel
Save