Fix possibly incorrect usage of conversion

This commit is contained in:
Jae Kwon
2017-12-28 17:37:21 -08:00
committed by Ethan Buchman
parent 558f8e7769
commit a171d90611
2 changed files with 2 additions and 3 deletions

View File

@ -31,7 +31,7 @@ func TestRepeat(t *testing.T) {
for i := 0; i < cnt; i++ {
timeout := time.After(time.Second * 2)
select {
case _ = <-rt.Chan():
case <-rt.Chan():
case <-timeout:
t.Fatal("expected RepeatTimer to fire")
}