Skip to content

Commit

Permalink
fix(ci): fixing integration tests context url path
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother committed Oct 19, 2024
1 parent a27f543 commit 8d80ce9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions tests/functional/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn check_if_rpc_is_responding_correctly_for_supported_chain(
expected_id: &str,
) {
let addr = format!(
"{}/v1/?projectId={}&providerId={}&chainId=",
"{}v1/?projectId={}&providerId={}&chainId=",
ctx.server.public_addr, ctx.server.project_id, provider_id
);

Expand Down Expand Up @@ -59,7 +59,7 @@ async fn check_if_rpc_is_responding_correctly_for_near_protocol(
provider_id: &ProviderKind,
) {
let addr = format!(
"{}/v1/?projectId={}&providerId={}&chainId=",
"{}v1/?projectId={}&providerId={}&chainId=",
ctx.server.public_addr, ctx.server.project_id, provider_id
);

Expand Down Expand Up @@ -99,7 +99,7 @@ async fn check_if_rpc_is_responding_correctly_for_solana(
provider_id: &ProviderKind,
) {
let addr = format!(
"{}/v1/?projectId={}&providerId={}&chainId=",
"{}v1/?projectId={}&providerId={}&chainId=",
ctx.server.public_addr, ctx.server.project_id, provider_id
);

Expand Down Expand Up @@ -127,8 +127,7 @@ async fn check_if_rpc_is_responding_correctly_for_solana(
#[test_context(ServerContext)]
#[tokio::test]
async fn health_check(ctx: &mut ServerContext) {
let addr = format!("{}/health", ctx.server.public_addr);

let addr = format!("{}health", ctx.server.public_addr);
let client = Client::builder().build::<_, hyper::Body>(HttpsConnector::new());

let request = Request::builder()
Expand All @@ -148,7 +147,7 @@ async fn account_history_check(ctx: &mut ServerContext) {
let account = "0xf3ea39310011333095CFCcCc7c4Ad74034CABA63";
let project_id = ctx.server.project_id.clone();
let addr = format!(
"{}/v1/account/{}/history?projectId={}",
"{}v1/account/{}/history?projectId={}",
ctx.server.public_addr, account, project_id
);

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/websocket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async fn check_if_rpc_is_responding_correctly_for_supported_chain(
expected_id: &str,
) {
let addr = format!(
"{}/ws?projectId={}&chainId={}",
"{}ws?projectId={}&chainId={}",
ctx.server.public_addr, ctx.server.project_id, chain_id
)
.replace("http", "ws");
Expand Down

0 comments on commit 8d80ce9

Please sign in to comment.