Skip to content

Commit

Permalink
Refactore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrLSD committed Aug 13, 2024
1 parent 763823d commit 48999d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions engine-tests/src/tests/repro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn repro_8ru7VEA() {
block_timestamp: 1_648_829_935_343_349_589,
input_path: "src/tests/res/input_8ru7VEA.hex",
evm_gas_used: 1_732_181,
near_gas_used: 204,
near_gas_used: 205,
});
}

Expand All @@ -71,7 +71,7 @@ fn repro_FRcorNv() {
block_timestamp: 1_650_960_438_774_745_116,
input_path: "src/tests/res/input_FRcorNv.hex",
evm_gas_used: 1_239_721,
near_gas_used: 166,
near_gas_used: 167,
});
}

Expand All @@ -88,7 +88,7 @@ fn repro_5bEgfRQ() {
block_timestamp: 1_651_073_772_931_594_646,
input_path: "src/tests/res/input_5bEgfRQ.hex",
evm_gas_used: 6_414_105,
near_gas_used: 646,
near_gas_used: 649,
});
}

Expand All @@ -106,7 +106,7 @@ fn repro_D98vwmi() {
block_timestamp: 1_651_753_443_421_003_245,
input_path: "src/tests/res/input_D98vwmi.hex",
evm_gas_used: 1_035_348,
near_gas_used: 167,
near_gas_used: 168,
});
}

Expand All @@ -125,7 +125,7 @@ fn repro_Emufid2() {
block_timestamp: 1_662_118_048_636_713_538,
input_path: "src/tests/res/input_Emufid2.hex",
evm_gas_used: 1_156_364,
near_gas_used: 292,
near_gas_used: 293,
});
}

Expand Down
6 changes: 4 additions & 2 deletions engine-tests/src/tests/sanity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ fn test_eth_transfer_insufficient_balance() {
.unwrap();
assert_eq!(
result.status,
TransactionStatus::Error(TransactionStatusEvmErrorKind::OutOfGas)
TransactionStatus::Error(TransactionStatusEvmErrorKind::OutOfFund)
);

// validate post-state
Expand Down Expand Up @@ -1266,7 +1266,9 @@ mod workspace {
.submit(rlp::encode(&signed_tx).to_vec())
.transact()
.await;
println!("RES: {:?}", res);
if let Err(err) = res {
println!("ERROR: {:#?}", err);
}

let result = aurora
.submit(rlp::encode(&signed_tx).to_vec())
Expand Down

0 comments on commit 48999d3

Please sign in to comment.