Move ChannelReceivesSomething to tests package.
ChannelReceivesSomething (formerly WaitForChannel) originally was located in the helpers package. This move was done to remove a cyclic dependency with the nomand package.
This commit is contained in:
@ -759,10 +759,5 @@ func TestNullReaderDoesNotReturnImmediately(t *testing.T) {
|
||||
_, _ = reader.Read(p)
|
||||
close(readerReturned)
|
||||
}()
|
||||
|
||||
select {
|
||||
case <-readerReturned:
|
||||
t.Fatal("Read should not return immediately.")
|
||||
case <-time.After(tests.ShortTimeout):
|
||||
}
|
||||
assert.False(t, tests.ChannelReceivesSomething(readerReturned, tests.ShortTimeout))
|
||||
}
|
||||
|
Reference in New Issue
Block a user