From d0bd0e90bcaace4d6ea021c93bde343badc8e960 Mon Sep 17 00:00:00 2001 From: Sergey Yakovlev Date: Mon, 16 Feb 2026 01:31:02 +0200 Subject: [PATCH] fix(tests): update tests for SSV API rename and PbsState signature change Align test code with recent refactors: replace removed `ssv_api_url` field with `ssv_node_api_url`/`ssv_public_api_url`, pass the new `PathBuf` argument to `PbsState::new`, and add Nix/devenv paths to .gitignore. --- .gitignore | 8 ++++++++ tests/tests/pbs_cfg_file_update.rs | 3 ++- tests/tests/pbs_mux.rs | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e48792b4..d49aa37a 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,11 @@ targets.json .idea/ logs .vscode/ + +# Nix +.direnv/ +.devenv/ +devenv.* +devenv.lock +.devenv.flake.nix +.envrc diff --git a/tests/tests/pbs_cfg_file_update.rs b/tests/tests/pbs_cfg_file_update.rs index 0c4e8e47..0699eb27 100644 --- a/tests/tests/pbs_cfg_file_update.rs +++ b/tests/tests/pbs_cfg_file_update.rs @@ -59,7 +59,8 @@ async fn test_cfg_file_update() -> Result<()> { * or anything close to it */ extra_validation_enabled: false, rpc_url: None, - ssv_api_url: Url::parse("http://example.com").unwrap(), + ssv_node_api_url: Url::parse("http://example.com").unwrap(), + ssv_public_api_url: Url::parse("http://example.com").unwrap(), http_timeout_seconds: 10, register_validator_retry_limit: 3, validator_registration_batch_size: None, diff --git a/tests/tests/pbs_mux.rs b/tests/tests/pbs_mux.rs index 85c84a55..34da1dc7 100644 --- a/tests/tests/pbs_mux.rs +++ b/tests/tests/pbs_mux.rs @@ -345,7 +345,7 @@ async fn test_ssv_multi_with_node() -> Result<()> { config.registry_muxes = Some(registry_muxes); // Run PBS service - let state = PbsState::new(config); + let state = PbsState::new(config, PathBuf::new()); let pbs_server = tokio::spawn(PbsService::run::<(), DefaultBuilderApi>(state)); info!("Started PBS server with pubkey {pubkey}"); @@ -441,7 +441,7 @@ async fn test_ssv_multi_with_public() -> Result<()> { config.registry_muxes = Some(registry_muxes); // Run PBS service - let state = PbsState::new(config); + let state = PbsState::new(config, PathBuf::new()); let pbs_server = tokio::spawn(PbsService::run::<(), DefaultBuilderApi>(state)); info!("Started PBS server with pubkey {pubkey}");