Skip to content

Commit 5873258

Browse files
committed
add wait for totalHarvesterWatchEvaluations to be greater than 0 before returning from wldf.py
1 parent f9875e7 commit 5873258

File tree

1 file changed

+19
-0
lines changed
  • integration-tests/src/test/resources/wldf

1 file changed

+19
-0
lines changed

integration-tests/src/test/resources/wldf/wldf.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from java.io import File
44
import sys, socket
55
import os
6+
import time as systime
67
hostname = socket.gethostname()
78

89
k8s_master_host=os.environ.get('KUBERNETES_SERVICE_HOST')
@@ -64,3 +65,21 @@
6465

6566
save()
6667
activate(block='true')
68+
69+
print "wait for harvester watch to become active"
70+
71+
domainRuntime()
72+
73+
cd('ServerRuntimes/admin-server/WLDFRuntime/WLDFRuntime/WLDFWatchNotificationRuntime/WatchNotification')
74+
75+
numWatchEval=cmo.getTotalHarvesterWatchEvaluations()
76+
maxwait=300
77+
78+
while(numWatchEval < 1) and (maxwait > 0):
79+
print numWatchEval
80+
maxwait -= 1
81+
systime.sleep(1)
82+
numWatchEval=cmo.getTotalHarvesterWatchEvaluations()
83+
84+
print "wldf.py done numWatchEval is ", numWatchEval, " maxwait is ", maxwait
85+

0 commit comments

Comments
 (0)