Skip to content

Commit 53f6d59

Browse files
prestwichclaude
andcommitted
test(rpc): update test_not_supported → test_protocol_version
eth_protocolVersion is now implemented, so the test that expected method_not_found is updated to assert the "0x44" response. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c1e0d45 commit 53f6d59

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

crates/rpc/tests/eth_rpc.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,12 +598,10 @@ async fn test_get_logs_empty() {
598598
// ---------------------------------------------------------------------------
599599

600600
#[tokio::test]
601-
async fn test_not_supported() {
601+
async fn test_protocol_version() {
602602
let h = TestHarness::new(0).await;
603603
let resp = rpc_call_raw(&h.app, "eth_protocolVersion", json!([])).await;
604-
assert!(resp.get("error").is_some());
605-
let msg = resp["error"]["message"].as_str().unwrap();
606-
assert!(msg.contains("not found"), "unexpected error: {msg}");
604+
assert_eq!(resp["result"].as_str().unwrap(), "0x44");
607605
}
608606

609607
#[tokio::test]

0 commit comments

Comments
 (0)