Skip to content

Commit

Permalink
More minor test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Oct 2, 2024
1 parent 68f0d3f commit 4d1f8d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion soroban-env-host/src/test/budget_metering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ fn total_amount_charged_from_random_inputs() -> Result<(), HostError> {
}

let actual = format!("{:?}", host.as_budget());

let expected = expect![[r#"
===============================================================================================================================================================================
Cpu limit: 100000000; used: 71512669
Expand Down
2 changes: 1 addition & 1 deletion soroban-env-host/src/test/e2e_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use rand::SeedableRng;
use sha2::{Digest, Sha256};
use soroban_env_common::TryIntoVal;
use soroban_test_wasms::{
ADD_I32, AUTH_TEST_CONTRACT, CONTRACT_STORAGE, DEPLOYER_TEST_CONTRACT, LINEAR_MEMORY,
ADD_F32, ADD_I32, AUTH_TEST_CONTRACT, CONTRACT_STORAGE, DEPLOYER_TEST_CONTRACT, LINEAR_MEMORY,
NO_ARGUMENT_CONSTRUCTOR_TEST_CONTRACT_P22, SIMPLE_ACCOUNT_CONTRACT, SUM_I32,
UPDATEABLE_CONTRACT,
};
Expand Down
6 changes: 3 additions & 3 deletions soroban-simulation/src/test/simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ fn test_simulate_invoke_contract_with_auth() {
assert!(res.contract_events.is_empty());
assert!(!res.diagnostic_events.is_empty());

let expected_instructions = 24487703;
let expected_instructions = 41269703;
assert_eq!(
res.transaction_data,
Some(SorobanTransactionData {
Expand Down Expand Up @@ -489,11 +489,11 @@ fn test_simulate_invoke_contract_with_auth() {
read_bytes: 7540,
write_bytes: 76,
},
resource_fee: 62751,
resource_fee: 79533,
})
);
assert_eq!(res.simulated_instructions, expected_instructions);
assert_eq!(res.simulated_memory, 12243711);
assert_eq!(res.simulated_memory, 20634711);
assert_eq!(
res.modified_entries,
vec![LedgerEntryDiff {
Expand Down

0 comments on commit 4d1f8d8

Please sign in to comment.