note in trust metric test
This commit is contained in:
parent
e2b3b5b58c
commit
c1e167e330
|
@ -68,7 +68,9 @@ func TestTrustMetricStopPause(t *testing.T) {
|
|||
tt.NextTick()
|
||||
tm.Pause()
|
||||
|
||||
// could be 1 or 2 because Pause and NextTick race
|
||||
first := tm.Copy().numIntervals
|
||||
|
||||
// Allow more time to pass and check the intervals are unchanged
|
||||
tt.NextTick()
|
||||
tt.NextTick()
|
||||
|
|
|
@ -24,7 +24,7 @@ type TestTicker struct {
|
|||
|
||||
// NewTestTicker returns our ticker used within test routines
|
||||
func NewTestTicker() *TestTicker {
|
||||
c := make(chan time.Time, 1)
|
||||
c := make(chan time.Time)
|
||||
return &TestTicker{
|
||||
C: c,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue