From ccc99b420f853d991cd05f58e6e5a2b7e444a11b Mon Sep 17 00:00:00 2001 From: Redouane Lakrache Date: Fri, 31 Jan 2025 06:39:30 +0100 Subject: [PATCH] fix: Failing test due to wrong balance --- pkg/client/query/cache/options.go | 2 +- pkg/relayer/session/session_test.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/client/query/cache/options.go b/pkg/client/query/cache/options.go index f4a487e8f..83f21ad30 100644 --- a/pkg/client/query/cache/options.go +++ b/pkg/client/query/cache/options.go @@ -9,7 +9,7 @@ import ( "github.com/pokt-network/poktroll/pkg/observable/channel" ) -// ClearableCache is an interface that defines the common methods for a cache object. +// Cache is an interface that defines the common methods for a cache object. type Cache interface { Clear() } diff --git a/pkg/relayer/session/session_test.go b/pkg/relayer/session/session_test.go index a9017bcad..9aa382036 100644 --- a/pkg/relayer/session/session_test.go +++ b/pkg/relayer/session/session_test.go @@ -74,8 +74,9 @@ func requireProofCountEqualsExpectedValueFromProofParams(t *testing.T, proofPara supplierOperatorAddress := sample.AccAddress() // Set the supplier operator balance to be able to submit the expected number of proofs. feePerProof := prooftypes.DefaultParams().ProofSubmissionFee.Amount.Int64() - numExpectedProofs := int64(2) - supplierOperatorBalance := feePerProof * numExpectedProofs + gasCost := session.ClamAndProofGasCost.Amount.Int64() + proofCost := feePerProof + gasCost + supplierOperatorBalance := proofCost supplierClientMap := testsupplier.NewClaimProofSupplierClientMap(ctx, t, supplierOperatorAddress, proofCount) blockPublishCh, minedRelaysPublishCh := setupDependencies(t, ctx, supplierClientMap, emptyBlockHash, proofParams, supplierOperatorBalance)