Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Dec 11, 2024
1 parent 6acf45c commit 6928a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/meterer/meterer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ func TestMetererOnDemand(t *testing.T) {

paymentChainState.On("GetOnDemandPaymentByAccount", testifymock.Anything, testifymock.MatchedBy(func(account gethcommon.Address) bool {
return account == accountID1
})).Return(&account1OnDemandPayments, nil)
})).Return(account1OnDemandPayments, nil)
paymentChainState.On("GetOnDemandPaymentByAccount", testifymock.Anything, testifymock.MatchedBy(func(account gethcommon.Address) bool {
return account == accountID2
})).Return(&account2OnDemandPayments, nil)
})).Return(account2OnDemandPayments, nil)
paymentChainState.On("GetOnDemandPaymentByAccount", testifymock.Anything, testifymock.Anything).Return(&core.OnDemandPayment{}, fmt.Errorf("payment not found"))
paymentChainState.On("GetOnDemandQuorumNumbers", testifymock.Anything).Return(quorumNumbers, nil)

Expand Down

0 comments on commit 6928a9a

Please sign in to comment.