summaryrefslogtreecommitdiffstats
path: root/infra/minimal-distribution-test/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'infra/minimal-distribution-test/src/test')
-rw-r--r--infra/minimal-distribution-test/src/test/java/io/fd/honeycomb/infra/distro/BaseMinimalDistributionTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/infra/minimal-distribution-test/src/test/java/io/fd/honeycomb/infra/distro/BaseMinimalDistributionTest.java b/infra/minimal-distribution-test/src/test/java/io/fd/honeycomb/infra/distro/BaseMinimalDistributionTest.java
index f083903fe..90817802d 100644
--- a/infra/minimal-distribution-test/src/test/java/io/fd/honeycomb/infra/distro/BaseMinimalDistributionTest.java
+++ b/infra/minimal-distribution-test/src/test/java/io/fd/honeycomb/infra/distro/BaseMinimalDistributionTest.java
@@ -176,7 +176,8 @@ public class BaseMinimalDistributionTest {
}
private void assertSuccessStatus(final HttpResponse<String> jsonNodeHttpResponse) {
- assertTrue(jsonNodeHttpResponse.getStatus() >= 200);
- assertTrue(jsonNodeHttpResponse.getStatus() < 400);
+ final int statusCode = jsonNodeHttpResponse.getStatus();
+ assertTrue("Expected HTTP status code in range [200, 400), but was: " + statusCode,
+ statusCode >= 200 && statusCode < 400);
}
} \ No newline at end of file