Skip to content

Commit

Permalink
fix: Failing test due to wrong balance
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne committed Jan 31, 2025
1 parent 4e4d9de commit ccc99b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/client/query/cache/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
5 changes: 3 additions & 2 deletions pkg/relayer/session/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ccc99b4

Please sign in to comment.