Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Aug 28, 2023
1 parent 2ffde3f commit b559d80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/soroban-rpc/internal/test/simulate_transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@ func TestSimulateTransactionSucceeds(t *testing.T) {
},
},
},
Instructions: 73776,
Instructions: 77283,
ReadBytes: 40,
WriteBytes: 112,
},
RefundableFee: 1,
RefundableFee: 20045,
}

// First, decode and compare the transaction data so we get a decent diff if it fails.
Expand Down Expand Up @@ -277,6 +277,8 @@ func TestSimulateTransactionSucceeds(t *testing.T) {
require.NoError(t, err)

resultForRequestWithoutOpSource := simulateTransactionFromTxParams(t, client, params)
// Let's not compare the latest ledger since it may change
resultForRequestWithoutOpSource.LatestLedger = resultForRequestWithoutOpSource.LatestLedger
assert.Equal(t, result, resultForRequestWithoutOpSource)

// test that operation source account takes precedence over tx source account
Expand Down

0 comments on commit b559d80

Please sign in to comment.