Skip to content

Commit

Permalink
[CXF] Fix exception message expectation on windows (apache#6043)
Browse files Browse the repository at this point in the history
  • Loading branch information
avano authored and zhfeng committed Apr 26, 2024
1 parent 97b3777 commit 7dd6f5a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import org.testcontainers.shaded.org.awaitility.Awaitility;

import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;

@QuarkusTest
@QuarkusTestResource(CxfWssClientTestResource.class)
Expand Down Expand Up @@ -116,7 +115,7 @@ public void testWrongClientNotHanging() {
//always fails because there is no server implementation
createSayHelloWrongClient().sayHelloWrong("Sheldon");
} catch (SOAPFaultException e) {
return "Connection refused".equals(e.getMessage());
return e.getMessage() != null && e.getMessage().toLowerCase().contains("connection refused");
}
//can not happen (client does not work)
return false;
Expand Down

0 comments on commit 7dd6f5a

Please sign in to comment.