From 75e6aa3735cba548615164f3569556ffc6706f79 Mon Sep 17 00:00:00 2001 From: Raymond Khalife Date: Mon, 21 Oct 2024 18:47:56 -0400 Subject: [PATCH] address PR comments --- packages/ic-http-gateway/tests/protocol_error_tests.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/ic-http-gateway/tests/protocol_error_tests.rs b/packages/ic-http-gateway/tests/protocol_error_tests.rs index 6d81ac6..1524ca0 100644 --- a/packages/ic-http-gateway/tests/protocol_error_tests.rs +++ b/packages/ic-http-gateway/tests/protocol_error_tests.rs @@ -28,7 +28,7 @@ fn build_gateway_image() -> Result<(), Box> { 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(()) @@ -36,8 +36,7 @@ fn build_gateway_image() -> Result<(), Box> { #[tokio::test] async fn test_rate_limiting_error() -> Result<(), Box> { - 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) @@ -61,7 +60,7 @@ async fn test_rate_limiting_error() -> Result<(), Box> { 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)