Make HttpConnectorTest for timeout less brittle.
Fixes:
RELNOTES: None
@@ -361,11 +361,7 @@ public class HttpConnectorTest {
fail("Should have thrown");
} catch (IOException expected) {
assertThat(expected).hasCauseThat().isInstanceOf(SocketTimeoutException.class);
- assertThat(expected)
- .hasCauseThat()
- .hasMessageThat()
- .ignoringCase()
- .isEqualTo("connect timed out");
+ assertThat(expected).hasCauseThat().hasMessageThat().ignoringCase().contains("timed out");
}
}
}
