From 5233ac154f4f97cbfd72fd62216dee0af32546d4 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Sat, 1 Dec 2018 11:58:56 +0100 Subject: [PATCH] Review comments: @melekes suggestions require instead of assert Co-Authored-By: Liamsi --- consensus/state_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/state_test.go b/consensus/state_test.go index 7c6e93284..3e91db136 100644 --- a/consensus/state_test.go +++ b/consensus/state_test.go @@ -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)