Skip to content

Commit 1d092c4

Browse files
prestwichclaude
andcommitted
fix(node-tests): build ServeConfig from Signet test config
The decomposed reth context has IPC/HTTP disabled by default. Tests need the Signet-configured IPC path for RPC communication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 156fe47 commit 1d092c4

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

crates/node-tests/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ repository.workspace = true
1111
[dependencies]
1212
signet-node.workspace = true
1313
signet-node-config = { workspace = true, features = ["test_utils"] }
14+
signet-rpc.workspace = true
1415

1516
signet-blobber.workspace = true
1617
signet-cold = { workspace = true, features = ["in-memory"] }

crates/node-tests/src/context.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,23 @@ impl SignetTestContext {
162162
.unwrap()
163163
.spawn::<alloy::consensus::SimpleCoder>();
164164

165+
// Build serve config from the Signet test config rather than the
166+
// reth defaults (which have IPC/HTTP disabled).
167+
let serve_config = signet_rpc::ServeConfig {
168+
http: vec![],
169+
http_cors: None,
170+
ws: vec![],
171+
ws_cors: None,
172+
ipc: cfg.ipc_endpoint().map(ToOwned::to_owned),
173+
};
174+
165175
let (node, mut node_status) = SignetNodeBuilder::new(cfg.clone())
166176
.with_notifier(decomposed.notifier)
167177
.with_storage(Arc::clone(&storage))
168178
.with_alias_oracle(Arc::clone(&alias_oracle))
169179
.with_chain_name(decomposed.chain_name)
170180
.with_blob_cacher(blob_cacher)
171-
.with_serve_config(decomposed.serve_config)
181+
.with_serve_config(serve_config)
172182
.with_rpc_config(decomposed.rpc_config)
173183
.with_client(reqwest::Client::new())
174184
.build()

0 commit comments

Comments
 (0)