Fix HttpConnectorTest on Arch Linux.
On my system, the word "connect" was capitalized in the error message, so let's ignore the case when comparing the string.
RELNOTES: None.
@@ -361,7 +361,11 @@ public class HttpConnectorTest {
fail("Should have thrown");
} catch (IOException expected) {
assertThat(expected).hasCauseThat().isInstanceOf(SocketTimeoutException.class);
- assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("connect timed out");
+ assertThat(expected)
+ .hasCauseThat()
+ .hasMessageThat()
+ .ignoringCase()
+ .isEqualTo("connect timed out");
}
}
}
