From 6928a9a1426dda3d817811295d5bea1c2c71186f Mon Sep 17 00:00:00 2001 From: hopeyen Date: Tue, 10 Dec 2024 18:01:12 -0800 Subject: [PATCH] fix: tests --- core/meterer/meterer_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/meterer/meterer_test.go b/core/meterer/meterer_test.go index d7614a9b81..6e3f980db3 100644 --- a/core/meterer/meterer_test.go +++ b/core/meterer/meterer_test.go @@ -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)