(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestTicker(t *testing.T) { |
| 29 | if !testutils.IsSingleTesting() { |
| 30 | return |
| 31 | } |
| 32 | |
| 33 | ticker := NewTicker(3 * time.Second) |
| 34 | go func() { |
| 35 | time.Sleep(10 * time.Second) |
| 36 | ticker.Stop() |
| 37 | }() |
| 38 | for ticker.Next() { |
| 39 | t.Log("tick") |
| 40 | } |
| 41 | t.Log("finished") |
| 42 | } |
| 43 | |
| 44 | func TestTicker2(t *testing.T) { |
| 45 | if !testutils.IsSingleTesting() { |
nothing calls this directly
no test coverage detected