Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

add tests and remove ignore on fixed ones #1021

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion rpc_state_reader/tests/blockifier_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,22 @@ fn blockifier_test_recent_tx() {
);
}

#[test_case(
"0x014640564509873cf9d24a311e1207040c8b60efd38d96caef79855f0b0075d5",
90006,
RpcChain::MainNet
=> ignore["old transaction, gas mismatch"]
)]
#[test_case(
"0x025844447697eb7d5df4d8268b23aef6c11de4087936048278c2559fc35549eb",
197000,
RpcChain::MainNet
)]
#[test_case(
"0x00164bfc80755f62de97ae7c98c9d67c1767259427bcf4ccfcc9683d44d54676",
197000,
RpcChain::MainNet
)]
#[test_case(
"0x05d200ef175ba15d676a68b36f7a7b72c17c17604eda4c1efc2ed5e4973e2c91",
169928, // real block 169929
Expand Down Expand Up @@ -266,7 +282,6 @@ fn blockifier_test_recent_tx() {
=> ignore["resource mismatch"]
)]
#[test_case(
// fails in blockifier too
"0x00724fc4a84f489ed032ebccebfc9541eb8dc64b0e76b933ed6fc30cd6000bd1",
186551, // real block 186552
RpcChain::MainNet
Expand Down
22 changes: 17 additions & 5 deletions rpc_state_reader/tests/sir_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,31 @@ fn test_get_gas_price() {
assert_eq!(price, 22804578690);
}

#[test_case(
"0x014640564509873cf9d24a311e1207040c8b60efd38d96caef79855f0b0075d5",
90006,
RpcChain::MainNet
=> ignore["old transaction, gas mismatch"]
)]
#[test_case(
"0x025844447697eb7d5df4d8268b23aef6c11de4087936048278c2559fc35549eb",
197000,
RpcChain::MainNet
)]
#[test_case(
"0x00164bfc80755f62de97ae7c98c9d67c1767259427bcf4ccfcc9683d44d54676",
197000,
RpcChain::MainNet
)]
#[test_case(
"0x05d200ef175ba15d676a68b36f7a7b72c17c17604eda4c1efc2ed5e4973e2c91",
169928, // real block 169929
RpcChain::MainNet
=> ignore["gas mismatch"]
)]
#[test_case(
"0x0528ec457cf8757f3eefdf3f0728ed09feeecc50fd97b1e4c5da94e27e9aa1d6",
169928, // real block 169929
RpcChain::MainNet
=> ignore["gas mismatch"]
)]
#[test_case(
"0x0737677385a30ec4cbf9f6d23e74479926975b74db3d55dc5e46f4f8efee41cf",
Expand All @@ -219,7 +233,6 @@ fn test_get_gas_price() {
"0x026c17728b9cd08a061b1f17f08034eb70df58c1a96421e73ee6738ad258a94c",
169928, // real block 169929
RpcChain::MainNet
=> ignore["gas mismatch"]
)]
#[test_case(
// review later
Expand All @@ -229,11 +242,10 @@ fn test_get_gas_price() {
=> ignore["resource mismatch"]
)]
#[test_case(
// fails in blockifier too
// fails in blockifier
"0x00724fc4a84f489ed032ebccebfc9541eb8dc64b0e76b933ed6fc30cd6000bd1",
186551, // real block 186552
RpcChain::MainNet
=> ignore["gas mismatch"]
)]
fn starknet_in_rust_test_case_tx(hash: &str, block_number: u64, chain: RpcChain) {
let (tx_info, trace, receipt) = execute_tx(hash, chain, BlockNumber(block_number));
Expand Down