// TickEverySecond spys channel so that we can emit desired time on tests
TickEverySecond spys channel so that we can emit desired time on tests
// TickEverySecond spys channel so that we can emit desired time on tests
func (s *SpyHost) TickEverySecond() <-chan time.Time {
	s.expireChannelAfter(10 * time.Millisecond)
	return s.channel
}
func ( s * SpyHost ) TickEverySecond ( ) <- chan time . Time { s . expireChannelAfter ( 10 * time . Millisecond ) return s . channel }
TickEverySecond spys channel so that we can emit desired time on tests
TickEverySecond spys channel so that we can emit desired time on tests
// In production, we want tick channel to be open forever // but we don't this bevahior when testing. // Thus we set an expiration time.