Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondk committed Oct 21, 2024
1 parent 86dceca commit 75e6aa3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/ic-http-gateway/tests/protocol_error_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,15 @@ fn build_gateway_image() -> Result<(), Box<dyn Error>> {

if !output.status.success() {
eprintln!("stderr: {}", String::from_utf8(output.stderr)?);
return Err("unable to build no_expose_port:latest".into());
return Err("unable to build mock busy replica image.".into());
}

Ok(())
}

#[tokio::test]
async fn test_rate_limiting_error() -> Result<(), Box<dyn std::error::Error>> {
let res = build_gateway_image();
res.expect("Failed to build the docker image");
build_gateway_image()?;

// run the mock backend container
let container = GenericImage::new(IMAGE_NAME, IMAGE_TAG)
Expand All @@ -61,7 +60,7 @@ async fn test_rate_limiting_error() -> Result<(), Box<dyn std::error::Error>> {
response.status().as_u16()
);

// Make a gatway
// Make a gateway
let agent = Agent::builder().with_url(backend_base_url).build().unwrap();
let http_gateway = HttpGatewayClient::builder()
.with_agent(agent)
Expand Down

0 comments on commit 75e6aa3

Please sign in to comment.