Review comments: @melekes suggestions

require instead of assert

Co-Authored-By: Liamsi <Ismail.Khoffi@gmail.com>
This commit is contained in:
Anton Kaliaev
2018-12-01 11:59:11 +01:00
committed by GitHub
parent 5233ac154f
commit 80c464c9b4

View File

@ -605,7 +605,7 @@ func TestStateLockPOLUnlock(t *testing.T) {
newRoundCh := subscribe(cs1.eventBus, types.EventQueryNewRound)
unlockCh := subscribe(cs1.eventBus, types.EventQueryUnlock)
addr, err := cs1.privValidator.GetAddress()
assert.NoError(t, err)
require.NoError(t, err)
voteCh := subscribeToVoter(cs1, addr)
// everything done from perspective of cs1