func (t *bucketTest) advanceTime() {
	// For simulated clocks, we can just advance the time.
	if c, ok := t.clock.(*timeutil.SimulatedClock); ok {
		c.AdvanceTime(time.Second)
		return
	}

	// Otherwise, sleep a moment.
	time.Sleep(time.Millisecond)
}
// Ensure that the clock will report a different time after returning.
Ensure that the clock will report a different time after returning.
// Ensure that the clock will report a different time after returning .
func (t *bucketTest) advanceTime() {
	if c, ok := t.clock.(*timeutil.SimulatedClock); ok {
		c.AdvanceTime(time.Second)
		return
	}
	time.Sleep(time.Millisecond)
}
func ( t * bucketTest ) advanceTime ( ) { if c , ok := t . clock . ( * timeutil . SimulatedClock ) ; ok { c . AdvanceTime ( time . Second ) return } time . Sleep ( time . Millisecond ) }
Ensure that the clock will report a different time after returning.
Ensure that the clock will report a different time after returning .
// For simulated clocks, we can just advance the time. // Otherwise, sleep a moment.