Skip to content

Commit dc6ae94

Browse files
committed
fix tests
1 parent 18b89db commit dc6ae94

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

config.example.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ late_in_slot_time_ms = 2000
5454
extra_validation_enabled = false
5555
# Execution Layer RPC url to use for extra validation
5656
# OPTIONAL
57-
rpc_url = "https://ethereum-holesky-rpc.publicnode.com"
57+
# rpc_url = "https://ethereum-holesky-rpc.publicnode.com"
5858
# Timeout for any HTTP requests sent from the PBS module to other services, in seconds
5959
# OPTIONAL, DEFAULT: 10
6060
http_timeout_seconds = 10

tests/data/configs/pbs.happy.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ chain = "Holesky"
22

33
[pbs]
44
docker_image = "ghcr.io/commit-boost/pbs:latest"
5-
with_signer = false
5+
extra_validation_enabled = false
66
host = "127.0.0.1"
7+
late_in_slot_time_ms = 2000
8+
min_bid_eth = 0.5
79
port = 18550
810
relay_check = true
9-
wait_all_registrations = true
11+
skip_sigverify = false
1012
timeout_get_header_ms = 950
1113
timeout_get_payload_ms = 4000
1214
timeout_register_validator_ms = 3000
13-
skip_sigverify = false
14-
min_bid_eth = 0.5
15-
late_in_slot_time_ms = 2000
16-
extra_validation_enabled = false
17-
rpc_url = "https://ethereum-holesky-rpc.publicnode.com"
15+
wait_all_registrations = true
16+
with_signer = false
17+
1818

1919
[[relays]]
20-
id = "example-relay"
21-
url = "http://0xa1cec75a3f0661e99299274182938151e8433c61a19222347ea1313d839229cb4ce4e3e5aa2bdeb71c8fcf1b084963c2@abc.xyz"
22-
headers = { X-MyCustomHeader = "MyCustomHeader" }
2320
enable_timing_games = false
24-
target_first_request_ms = 200
2521
frequency_get_header_ms = 300
22+
headers = { X-MyCustomHeader = "MyCustomHeader" }
23+
id = "example-relay"
24+
target_first_request_ms = 200
25+
url = "http://0xa1cec75a3f0661e99299274182938151e8433c61a19222347ea1313d839229cb4ce4e3e5aa2bdeb71c8fcf1b084963c2@abc.xyz"

tests/tests/config.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ async fn test_load_pbs_happy() -> Result<()> {
5555
assert_eq!(config.pbs.pbs_config.min_bid_wei, U256::from((0.5 * WEI_PER_ETH as f64) as u64));
5656
assert_eq!(config.pbs.pbs_config.late_in_slot_time_ms, 2000);
5757
assert!(!config.pbs.pbs_config.extra_validation_enabled);
58-
assert_eq!(
59-
config.pbs.pbs_config.rpc_url,
60-
Some("https://ethereum-holesky-rpc.publicnode.com".parse::<Url>().unwrap())
61-
);
6258

6359
// Relay specific settings
6460
let relay = &config.relays[0];

0 commit comments

Comments
 (0)