Skip to content

Commit 2c32041

Browse files
giladchaseGilad Chase
andauthored
l1: remove out of scope assertion in test (#7787)
* l1: use `AnvilBaseLayer` in integration test * l1: remove out of scope assertion in test No need to test this, it's testing Anvil, also isn't relevant to this test. --------- Co-authored-by: Gilad Chase <gilad@starkware.com>
1 parent 920ab01 commit 2c32041

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

crates/papyrus_base_layer/src/base_layer_test.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,6 @@ async fn events_from_other_contract() {
128128
let _anvil = anvil_instance_from_config(&this_config);
129129
let this_contract = EthereumBaseLayerContract::new(this_config.clone());
130130

131-
// Test: get_proved_block_at_unknown_block_number.
132-
// TODO(Arni): turn this into a unit test, with its own anvil instance.
133-
assert!(
134-
this_contract
135-
.get_proved_block_at(123)
136-
.await
137-
.unwrap_err()
138-
// This error is nested way too deep inside `alloy`.
139-
.to_string()
140-
.contains("BlockOutOfRangeError")
141-
);
142-
143131
// Test: Get events from L1 contract and other instances of this L1 contract.
144132
// Setup.
145133

0 commit comments

Comments
 (0)