Skip to content

Commit

Permalink
make sure we spin here
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdata committed Apr 30, 2024
1 parent 6914100 commit d3dd4f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ticker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
)

func TestTickerClosing(t *testing.T) {
ticker := NewTicker(nil, nil)
maxrate := int32(time.Second / variance * 2)
ticker := NewTicker(&maxrate, nil)
ticker.Close()
select {
case _, ok := <-ticker.C:
Expand Down

0 comments on commit d3dd4f7

Please sign in to comment.