Skip to content

Commit eb53f71

Browse files
committed
update tests
1 parent 22d87bb commit eb53f71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

module/mempool/consensus/exec_fork_suppressor_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ func Test_ForkDetectionPersisted(t *testing.T) {
286286

287287
// This function retrieves conflicting seals from the same underlying database with a new instance of storage.DB.
288288
func(t *testing.T, db storage.DB) {
289-
lockManager2 := storage.NewTestingLockManager()
289+
lockManager := storage.NewTestingLockManager()
290290

291291
wrappedMempool2 := &poolmock.IncorporatedResultSeals{}
292292
execForkActor2 := &actormock.ExecForkActor{}
@@ -295,7 +295,7 @@ func Test_ForkDetectionPersisted(t *testing.T) {
295295
conflictingSeals := args.Get(0).([]*flow.IncorporatedResultSeal)
296296
require.ElementsMatch(t, []*flow.IncorporatedResultSeal{sealA, sealB}, conflictingSeals)
297297
}).Return().Once()
298-
wrapper2, _ := NewExecStateForkSuppressor(wrappedMempool2, execForkActor2.OnExecFork, db, lockManager2, zerolog.New(os.Stderr))
298+
wrapper2, _ := NewExecStateForkSuppressor(wrappedMempool2, execForkActor2.OnExecFork, db, lockManager, zerolog.New(os.Stderr))
299299

300300
// add another (non-conflicting) seal to ExecForkSuppressor
301301
// fail test if seal is added to wrapped mempool

0 commit comments

Comments
 (0)