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:58:56 +01:00
committed by GitHub
parent db04ff4896
commit 5233ac154f

View File

@@ -512,7 +512,7 @@ func TestStateLockPOLRelock(t *testing.T) {
timeoutWaitCh := subscribe(cs1.eventBus, types.EventQueryTimeoutWait)
proposalCh := subscribe(cs1.eventBus, types.EventQueryCompleteProposal)
addr, err := cs1.privValidator.GetAddress()
assert.NoError(t, err)
require.NoError(t, err)
voteCh := subscribeToVoter(cs1, addr)
newRoundCh := subscribe(cs1.eventBus, types.EventQueryNewRound)
newBlockCh := subscribe(cs1.eventBus, types.EventQueryNewBlockHeader)