Browse Source

remove weird concurrency testing

pull/1095/head
Anton Kaliaev 7 years ago
parent
commit
860da464df
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      p2p/conn/connection_test.go

+ 0
- 4
p2p/conn/connection_test.go View File

@ -339,12 +339,8 @@ func TestMConnectionTrySend(t *testing.T) {
go func() {
mconn.TrySend(0x01, msg)
resultCh <- "TrySend"
mconn.Send(0x01, msg)
resultCh <- "Send"
}()
assert.False(mconn.CanSend(0x01))
assert.False(mconn.TrySend(0x01, msg))
assert.Equal("TrySend", <-resultCh)
server.Read(make([]byte, len(msg)))
assert.Equal("Send", <-resultCh) // Order constrained by parallel blocking above
}

Loading…
Cancel
Save