@@ -493,11 +493,6 @@ private void recreateConfigMapandRestart(String oldSecret, String newSecret) thr
493493 // stop all running wls pods
494494 int clusterReplicas =
495495 TestUtils .getClusterReplicas (DOMAINUID , domain .getClusterName (), domain .getDomainNs ());
496- String patchStr = "'{\" spec\" :{\" serverStartPolicy\" :\" NEVER\" }}'" ;
497- TestUtils .kubectlpatch (DOMAINUID , domain .getDomainNs (), patchStr );
498- Thread .sleep (60000 );
499- domain .verifyServerPodsDeleted (clusterReplicas );
500- TestUtils .exec ("kubectl get all --all-namespaces" , true );
501496
502497 // recreate the configmap with new overrride files
503498 String cmd =
@@ -539,8 +534,12 @@ private void recreateConfigMapandRestart(String oldSecret, String newSecret) thr
539534 // apply the new domain.yaml
540535 TestUtils .exec ("kubectl apply -f " + domainYaml , true );
541536 }
542- // start the pods so that introspector can run and replace files with new secret if changed and
543- // with new config override files
537+ // restart the pods so that introspector can run and replace files with new secret if changed
538+ // and with new config override files
539+ String patchStr = "'{\" spec\" :{\" serverStartPolicy\" :\" NEVER\" }}'" ;
540+ TestUtils .kubectlpatch (DOMAINUID , domain .getDomainNs (), patchStr );
541+ domain .verifyServerPodsDeleted (clusterReplicas );
542+ TestUtils .exec ("kubectl get all --all-namespaces" , true );
544543 patchStr = "'{\" spec\" :{\" serverStartPolicy\" :\" IF_NEEDED\" }}'" ;
545544 TestUtils .kubectlpatch (DOMAINUID , domain .getDomainNs (), patchStr );
546545 domain .verifyDomainCreated ();
0 commit comments