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:
Konrad Hanff
2021-06-21 08:32:44 +02:00
parent 92f1af83ae
commit c7ed54942d
3 changed files with 25 additions and 25 deletions

View File

@ -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))
}