Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifropc committed Feb 5, 2025
1 parent 6e48749 commit da763ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/crates/soroban-test/tests/it/rpc_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ async fn test_use_rpc_provider_with_auth_header() {
}

fn mock_generate_account(server: &MockServer) -> Mock {
let cli_version = soroban_cli::commands::version::pkg();
let agent = format!("soroban-cli/{cli_version}");
server.mock(|when, then| {
when.method(GET)
.path("/friendbot")
.header("accept", "*/*")
.header("user-agent", "soroban-cli/22.1.0"); // TODO: update this to be future-proof
.header("user-agent", agent);
then.status(200);
})
}
Expand Down

0 comments on commit da763ed

Please sign in to comment.