Skip to content

Commit

Permalink
Update resource fee in simulate transaction test
Browse files Browse the repository at this point in the history
  • Loading branch information
stellarsaur committed Dec 15, 2023
1 parent 89832a9 commit 29781a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/soroban-rpc/internal/test/simulate_transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func TestSimulateTransactionSucceeds(t *testing.T) {
// for test purposes, the most deterministic way to assert the resulting fee is expected value in test scope, is to capture
// the resulting fee from current preflight output and re-plug it in here, rather than try to re-implement the cost-model algo
// in the test.
ResourceFee: 135910,
ResourceFee: 115910,
}

// First, decode and compare the transaction data so we get a decent diff if it fails.
Expand Down Expand Up @@ -1130,7 +1130,7 @@ func TestSimulateSystemEvent(t *testing.T) {
// for test purposes, the most deterministic way to assert the resulting fee is expected value in test scope, is to capture
// the resulting fee from current preflight output and re-plug it in here, rather than try to re-implement the cost-model algo
// in the test.
assert.InDelta(t, 100980, int64(transactionData.ResourceFee), 5000)
assert.InDelta(t, 80980, int64(transactionData.ResourceFee), 5000)
assert.InDelta(t, 104, uint32(transactionData.Resources.WriteBytes), 15)
require.GreaterOrEqual(t, len(response.Events), 3)
}

0 comments on commit 29781a9

Please sign in to comment.