fix(tests): Add missing http_addr field to NetworkConfig in tests
Added http_addr field to test configurations after it was added to NetworkConfig for REST API support. This fixes Nix build failures during test compilation. Files fixed: - chainfire integration tests (3 occurrences) - plasmavmc grpc smoke test (1 occurrence) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5675696a7f
commit
9b4ab98a9f
3 changed files with 5 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ fn cluster_config_with_join(node_id: u64) -> (ServerConfig, tempfile::TempDir) {
|
|||
},
|
||||
network: NetworkConfig {
|
||||
api_addr,
|
||||
http_addr: format!("127.0.0.1:{}", 28080 + node_id).parse().unwrap(),
|
||||
raft_addr,
|
||||
gossip_addr,
|
||||
tls: None,
|
||||
|
|
@ -100,6 +101,7 @@ fn cluster_config_simultaneous_bootstrap(node_id: u64) -> (ServerConfig, tempfil
|
|||
},
|
||||
network: NetworkConfig {
|
||||
api_addr,
|
||||
http_addr: format!("127.0.0.1:{}", 28080 + node_id).parse().unwrap(),
|
||||
raft_addr,
|
||||
gossip_addr,
|
||||
tls: None,
|
||||
|
|
@ -136,6 +138,7 @@ fn single_node_config() -> (ServerConfig, tempfile::TempDir) {
|
|||
},
|
||||
network: NetworkConfig {
|
||||
api_addr,
|
||||
http_addr: format!("127.0.0.1:{}", 28080 + node_id).parse().unwrap(),
|
||||
raft_addr,
|
||||
gossip_addr,
|
||||
tls: None,
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ fn test_config(port: u16) -> (ServerConfig, tempfile::TempDir) {
|
|||
},
|
||||
network: NetworkConfig {
|
||||
api_addr,
|
||||
http_addr: "127.0.0.1:28081".parse().unwrap(),
|
||||
raft_addr,
|
||||
gossip_addr,
|
||||
tls: None,
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ fn chainfire_test_config(port: u16) -> (chainfire_server::config::ServerConfig,
|
|||
},
|
||||
network: NetworkConfig {
|
||||
api_addr,
|
||||
http_addr: "127.0.0.1:28081".parse().unwrap(),
|
||||
raft_addr,
|
||||
gossip_addr,
|
||||
tls: None,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue