@@ -52,12 +52,14 @@ func TestRayServiceInPlaceUpdate(t *testing.T) {
5252 }, TestTimeoutShort ).Should (WithTransform (sampleyaml .IsPodRunningAndReady , BeTrue ()))
5353
5454 // test the default curl result
55- // curl /fruit
56- stdout , _ := curlRayServicePod (test , rayService , curlPod , curlContainerName , "/fruit" , `["MANGO", 2]` )
57- g .Expect (stdout .String ()).To (Equal ("6" ))
58- // curl /calc
59- stdout , _ = curlRayServicePod (test , rayService , curlPod , curlContainerName , "/calc" , `["MUL", 3]` )
60- g .Expect (stdout .String ()).To (Equal ("15 pizzas please!" ))
55+ g .Eventually (func (g Gomega ) {
56+ // curl /fruit
57+ stdout , _ := curlRayServicePod (test , rayService , curlPod , curlContainerName , "/fruit" , `["MANGO", 2]` )
58+ g .Expect (stdout .String ()).To (Equal ("6" ))
59+ // curl /calc
60+ stdout , _ = curlRayServicePod (test , rayService , curlPod , curlContainerName , "/calc" , `["MUL", 3]` )
61+ g .Expect (stdout .String ()).To (Equal ("15 pizzas please!" ))
62+ }, TestTimeoutShort ).Should (Succeed ())
6163
6264 // In-place update
6365 // Parse ServeConfigV2 and replace the string in the simplest way to update it.
@@ -79,7 +81,7 @@ func TestRayServiceInPlaceUpdate(t *testing.T) {
7981 // Test the new price and factor
8082 g .Eventually (func (g Gomega ) {
8183 // curl /fruit
82- stdout , _ = curlRayServicePod (test , rayService , curlPod , curlContainerName , "/fruit" , `["MANGO", 2]` )
84+ stdout , _ : = curlRayServicePod (test , rayService , curlPod , curlContainerName , "/fruit" , `["MANGO", 2]` )
8385 g .Expect (stdout .String ()).To (Equal ("8" ))
8486 // curl /calc
8587 stdout , _ = curlRayServicePod (test , rayService , curlPod , curlContainerName , "/calc" , `["MUL", 3]` )
0 commit comments