Skip to content

Commit

Permalink
gpioutil: fix a race condition in TestDebounce_WaitForEdge_Got
Browse files Browse the repository at this point in the history
  • Loading branch information
maruel committed Oct 23, 2018
1 parent fd06a4a commit b353903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experimental/devices/gpioutil/debounce_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down

0 comments on commit b353903

Please sign in to comment.