One more attempt with a read-only channel

This commit is contained in:
Ethan Frey
2017-12-06 21:51:23 +01:00
parent 1ac4c5dd6d
commit e430d3f844
2 changed files with 19 additions and 16 deletions

View File

@ -46,7 +46,7 @@ func TestThrottle(test *testing.T) {
t := NewThrottleTimer("foo", delay)
// start at 0
c := &thCounter{input: t.Ch}
c := &thCounter{input: t.C()}
assert.Equal(0, c.Count())
go c.Read()