From a6f1b9e8eb73f058e1ec08b699b8a542070674b9 Mon Sep 17 00:00:00 2001 From: Pavel Zbitskiy <65323360+algorandskiy@users.noreply.github.com> Date: Fri, 18 Feb 2022 12:40:22 -0500 Subject: [PATCH] Fix a typo in agreement test (#3651) ## Summary Fix for a strange assert found by JJ ## Test Plan This is a test fix --- agreement/asyncVoteVerifier_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agreement/asyncVoteVerifier_test.go b/agreement/asyncVoteVerifier_test.go index 40ad59d5e4..8a4e819595 100644 --- a/agreement/asyncVoteVerifier_test.go +++ b/agreement/asyncVoteVerifier_test.go @@ -44,7 +44,7 @@ func TestVerificationAgainstFullExecutionPool(t *testing.T) { voteVerifier := MakeAsyncVoteVerifier(&expiredExecPool{mainPool}) defer voteVerifier.Quit() verifyErr := voteVerifier.verifyVote(context.Background(), nil, unauthenticatedVote{}, 0, message{}, make(chan<- asyncVerifyVoteResponse, 1)) - require.Error(t, context.Canceled, verifyErr) + require.Equal(t, context.Canceled, verifyErr) verifyEqVoteErr := voteVerifier.verifyEqVote(context.Background(), nil, unauthenticatedEquivocationVote{}, 0, message{}, make(chan<- asyncVerifyVoteResponse, 1)) - require.Error(t, context.Canceled, verifyEqVoteErr) + require.Equal(t, context.Canceled, verifyEqVoteErr) }