From d6dd86b4198d317052c132c46b5193a8945bea30 Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Thu, 30 Sep 2021 12:45:50 -0400 Subject: [PATCH] Fix lint --- extern/storage-sealing/precommit_batch_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extern/storage-sealing/precommit_batch_test.go b/extern/storage-sealing/precommit_batch_test.go index 67694e37e..6013ee17d 100644 --- a/extern/storage-sealing/precommit_batch_test.go +++ b/extern/storage-sealing/precommit_batch_test.go @@ -174,11 +174,12 @@ func TestPrecommitBatcher(t *testing.T) { s.EXPECT().StateMinerInfo(gomock.Any(), gomock.Any(), gomock.Any()).Return(miner.MinerInfo{Owner: t0123, Worker: t0123}, nil) for _, number := range expect { + numClone := number s.EXPECT().SendMsg(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(), funMatcher(func(i interface{}) bool { b := i.([]byte) var params miner5.PreCommitSectorParams require.NoError(t, params.UnmarshalCBOR(bytes.NewReader(b))) - require.Equal(t, number, params.SectorNumber) + require.Equal(t, numClone, params.SectorNumber) return true })) }