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 92a021a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/crates/soroban-test/tests/it/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ fn remap_absolute_paths() {
let wasm_buf = std::fs::read(wasm_path).unwrap();
let wasm_str = String::from_utf8_lossy(&wasm_buf);

println!("{}", wasm_str);

wasm_str.contains(&registry_prefix)
}

Expand Down
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 92a021a

Please sign in to comment.