Skip to content

Commit a68b350

Browse files
Fix eth_new_block_filter test (#6112)
1 parent 22d626c commit a68b350

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tool/subcommands/api_cmd/stateful_tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,9 @@ fn eth_new_block_filter() -> RpcTestScenario {
406406

407407
if let EthFilterResult::Hashes(hashes) = filter_result {
408408
verify_hashes(&hashes).await?;
409-
anyhow::ensure!(prev_hashes != hashes);
409+
anyhow::ensure!(
410+
(prev_hashes.is_empty() && hashes.is_empty()) || prev_hashes != hashes,
411+
);
410412

411413
Ok(())
412414
} else {
@@ -632,9 +634,7 @@ pub(super) async fn create_tests(tx: TestTransaction) -> Vec<RpcTestScenario> {
632634
EthUninstallFilter
633635
),
634636
with_methods!(
635-
eth_new_block_filter()
636-
.name("eth_newBlockFilter works")
637-
.ignore("https://github.com/ChainSafe/forest/issues/6069"),
637+
eth_new_block_filter().name("eth_newBlockFilter works"),
638638
EthNewBlockFilter,
639639
EthGetFilterChanges,
640640
EthUninstallFilter

0 commit comments

Comments
 (0)