Skip to content

Commit f9e16bf

Browse files
committed
Update finalizer tests to expect correct number of calls
1 parent eacc992 commit f9e16bf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

module/finalizer/collection/finalizer_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ func TestFinalizer(t *testing.T) {
6565
defer cleanup()
6666

6767
pusher := collectionmock.NewGuaranteedCollectionPublisher(t)
68-
pusher.On("SubmitCollectionGuarantee", mock.Anything)
6968
finalizer := collection.NewFinalizer(db, pool, pusher, metrics)
7069

7170
fakeBlockID := unittest.IdentifierFixture()
@@ -78,7 +77,7 @@ func TestFinalizer(t *testing.T) {
7877
defer cleanup()
7978

8079
pusher := collectionmock.NewGuaranteedCollectionPublisher(t)
81-
pusher.On("SubmitCollectionGuarantee", mock.Anything)
80+
pusher.On("SubmitCollectionGuarantee", mock.Anything).Once()
8281
finalizer := collection.NewFinalizer(db, pool, pusher, metrics)
8382

8483
// tx1 is included in the finalized block
@@ -104,7 +103,6 @@ func TestFinalizer(t *testing.T) {
104103
defer cleanup()
105104

106105
pusher := collectionmock.NewGuaranteedCollectionPublisher(t)
107-
pusher.On("SubmitCollectionGuarantee", mock.Anything)
108106
finalizer := collection.NewFinalizer(db, pool, pusher, metrics)
109107

110108
// create a new block that isn't connected to a parent

0 commit comments

Comments
 (0)