From 9667e027f3f2da1ec022f4ad9b5ce198f099db2e Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Tue, 8 Aug 2017 15:57:10 -0400 Subject: [PATCH] [tm-monitor] fix TestNodeConnectionLost test --- tm-monitor/monitor/node_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tm-monitor/monitor/node_test.go b/tm-monitor/monitor/node_test.go index b8691a785..0f57629b5 100644 --- a/tm-monitor/monitor/node_test.go +++ b/tm-monitor/monitor/node_test.go @@ -68,10 +68,7 @@ func TestNodeConnectionLost(t *testing.T) { emMock.Call("disconnectCallback") assert.Equal(true, <-disconnectCh) - assert.Equal(false, <-disconnectCh) - - // we're back in a race - assert.Equal(true, n.Online) + assert.Equal(false, n.Online) } func TestNumValidators(t *testing.T) {