Refine assertion error message in CfBasicHttpClientTest.

This commit is contained in:
2026-03-10 19:38:17 +01:00
parent 0ce37c53aa
commit f180e7daba
@@ -82,7 +82,7 @@ class CfBasicHttpClientTest {
assertTrue(exception.getMessage().contains("Unexpected error")); assertTrue(exception.getMessage().contains("Unexpected error"));
Throwable cause = exception.getCause(); Throwable cause = exception.getCause();
assertInstanceOf(CloudflareApiException.class, cause); assertInstanceOf(CloudflareApiException.class, cause);
assertTrue(cause.getMessage().contains("API error: 10404: No route for that URI"), "Expected error message No route for that URI"); assertTrue(cause.getMessage().contains("API error: 10404: No route for that URI"), "Expected error message: No route for that URI∞ but it was: " + cause.getMessage());
} }
@Test @Test