File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def smoke_test_container(self, port):
10
10
build_version = os .environ .get ('VERSION' )
11
11
current_attempts = 0
12
12
max_attempts = 3
13
- sleep_interval = 2
13
+ sleep_interval = 3
14
14
status_fetched = False
15
15
status_json = None
16
16
@@ -19,13 +19,16 @@ def smoke_test_container(self, port):
19
19
try :
20
20
response = urllib2 .urlopen ('http://localhost:%s/wd/hub/status' % port )
21
21
status_json = json .loads (response .read ())
22
+ self .assertTrue (status_json ['value' ]['ready' ], "Container is not ready on port %s" % port )
22
23
status_fetched = True
23
24
except Exception as e :
24
25
time .sleep (sleep_interval )
25
26
26
27
self .assertTrue (status_fetched , "Container status was not fetched on port %s" % port )
27
28
self .assertTrue (status_json ['status' ] == 0 , "Wrong status value for container on port %s" % port )
28
- self .assertTrue (status_json ['value' ]['build' ]['version' ] == build_version , "Wrong build version in container on port %s" % port )
29
+ self .assertTrue (status_json ['value' ]['build' ]['version' ] == build_version ,
30
+ "Wrong build version in container on port %s" % port )
31
+ self .assertTrue (status_json ['value' ]['ready' ], "Container is not ready on port %s" % port )
29
32
30
33
31
34
class NodeTest (SmokeTests ):
You can’t perform that action at this time.
0 commit comments