Browse Source

[tm-monitor] fix TestNodeConnectionLost test

pull/1943/head
Anton Kaliaev 7 years ago
parent
commit
9667e027f3
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      tm-monitor/monitor/node_test.go

+ 1
- 4
tm-monitor/monitor/node_test.go View File

@ -68,10 +68,7 @@ func TestNodeConnectionLost(t *testing.T) {
emMock.Call("disconnectCallback") emMock.Call("disconnectCallback")
assert.Equal(true, <-disconnectCh) 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) { func TestNumValidators(t *testing.T) {


Loading…
Cancel
Save