Skip to content

Commit a3f6366

Browse files
authored
Fix for oracle.weblogic.kubernetes.ItIntrospectVersion.testIntrospectDomainScript test intermittent failures (#2621)
* Fix for oracle.weblogic.kubernetes.ItIntrospectVersion.testIntrospectDomainScript test intermittent failures
1 parent 12dc3d0 commit a3f6366

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItIntrospectVersion.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,14 @@ void testIntrospectDomainScript() {
11331133
// verify when a domain resource has spec.introspectVersion configured,
11341134
// after a introspectVersion is modified, new server pods have the label
11351135
// "weblogic.introspectVersion" set as well.
1136-
verifyIntrospectVersionLabelInPod(replicaCount);
1136+
testUntil(
1137+
() -> {
1138+
assertDoesNotThrow(() -> verifyIntrospectVersionLabelInPod(replicaCount));
1139+
return true;
1140+
},
1141+
logger,
1142+
" Running verifyIntrospectVersionLabelInPod");
1143+
11371144

11381145
// use introspectDomain.sh to initiate introspection
11391146
logger.info("Initiate introspection with non numeric string with space");

0 commit comments

Comments
 (0)