fixes after my second review

This commit is contained in:
Anton Kaliaev
2019-02-03 17:04:22 +04:00
parent 165bb2abfe
commit ebe8625478
2 changed files with 1 additions and 2 deletions

View File

@@ -1570,6 +1570,5 @@ func subscribe(eventBus *types.EventBus, q tmpubsub.Query) <-chan tmpubsub.Messa
if err != nil {
panic(fmt.Sprintf("failed to subscribe %s to %v", testSubscriber, q))
}
// XXX: return a subscription?
return sub.Out()
}

View File

@@ -349,7 +349,7 @@ func TestEndBlockValidatorUpdates(t *testing.T) {
assert.EqualValues(t, 10, event.ValidatorUpdates[0].VotingPower)
}
case <-updatesSub.Cancelled():
t.Fatal(fmt.Sprintf("updatesSub was cancelled (reason: %v)", updatesSub.Err()))
t.Fatalf("updatesSub was cancelled (reason: %v)", updatesSub.Err())
case <-time.After(1 * time.Second):
t.Fatal("Did not receive EventValidatorSetUpdates within 1 sec.")
}