Fix data race in TestCorrectStreamWakeup (#2334)

This commit is contained in:
Neil Alexander 2022-04-08 10:46:36 +01:00 committed by GitHub
parent b8c97431b9
commit f299f97e0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -165,9 +165,9 @@ func TestCorrectStreamWakeup(t *testing.T) {
go func() {
select {
case <-streamone.signalChannel:
case <-streamone.ch():
awoken <- "one"
case <-streamtwo.signalChannel:
case <-streamtwo.ch():
awoken <- "two"
}
}()