Skip to content

Commit

Permalink
Fix some go verision nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
DPJacques committed Oct 17, 2024
1 parent 0372de9 commit 2b71844
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clockwork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestAfter(t *testing.T) {
fc := &FakeClock{}

var timers []<-chan time.Time
for i := range 3 {
for i := 0; i <=3; i++ {
timers = append(timers, fc.After(time.Duration(i*2+1))) // 1, 3, 5
}

Expand Down Expand Up @@ -92,7 +92,7 @@ func TestAfterZero(t *testing.T) {
}{
{name: "zero"},
{
name: "negatie",
name: "negative",
d: -time.Second,
},
}
Expand All @@ -106,7 +106,7 @@ func TestAfterZero(t *testing.T) {
select {
case <-fc.After(tc.d):
case <-ctx.Done():
t.Errorf("negative did not return!")
t.Errorf("FakeClock.After() did not return.")
}
})
}
Expand Down

0 comments on commit 2b71844

Please sign in to comment.