Skip to content

Commit 474879a

Browse files
committed
update mocks
1 parent c17ea26 commit 474879a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

state/protocol/protocol_state/state/mutable_protocol_state_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (s *StateMutatorSuite) testEvolveState(seals []*flow.Seal, expectedResultin
109109
// expect calls to prepare a deferred update for indexing and storing the resulting state:
110110
// as state has not changed, we expect the parent blocks protocol state ID
111111
if stateChangeExpected {
112-
s.protocolKVStoreDB.On("BatchStore", mock.Anything, rw, expectedResultingStateID, &s.evolvingState).Return(nil).Once()
112+
s.protocolKVStoreDB.On("BatchStore", rw, expectedResultingStateID, &s.evolvingState).Return(nil).Once()
113113
}
114114

115115
deferredDBOps := deferred.NewDeferredBlockPersist()
@@ -553,7 +553,7 @@ func (s *StateMutatorSuite) Test_EncodeFailed() {
553553

554554
rw := storagemock.NewReaderBatchWriter(s.T())
555555
s.protocolKVStoreDB.On("BatchIndex", mock.Anything, mock.Anything, s.candidate.ID(), expectedResultingStateID).Return(nil).Once()
556-
s.protocolKVStoreDB.On("BatchStore", mock.Anything, mock.Anything, expectedResultingStateID, &s.evolvingState).Return(exception).Once()
556+
s.protocolKVStoreDB.On("BatchStore", mock.Anything, expectedResultingStateID, &s.evolvingState).Return(exception).Once()
557557

558558
deferredDBOps := deferred.NewDeferredBlockPersist()
559559
_, err := s.mutableState.EvolveState(deferredDBOps, s.candidate.ParentID, s.candidate.View, []*flow.Seal{})

0 commit comments

Comments
 (0)