From 860da464df1421d608f37b68bef4f182dd34bf6b Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Thu, 11 Jan 2018 15:32:25 -0600 Subject: [PATCH] remove weird concurrency testing --- p2p/conn/connection_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/p2p/conn/connection_test.go b/p2p/conn/connection_test.go index 23b7078e8..8ab865bf0 100644 --- a/p2p/conn/connection_test.go +++ b/p2p/conn/connection_test.go @@ -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 }