rabbah commented on a change in pull request #3774: Add retry in 
WskRestBasicTests to avoid intermittent test failures
URL: 
https://github.com/apache/incubator-openwhisk/pull/3774#discussion_r195857639
 
 

 ##########
 File path: tests/src/test/scala/system/basic/WskRestBasicTests.scala
 ##########
 @@ -120,7 +120,11 @@ class WskRestBasicTests extends TestHelpers with 
WskTestHelpers {
     }
 
     wsk.action.create(packageName + "/" + actionName, defaultAction, 
annotations = actionAnnots)
-    val result = wsk.pkg.get(packageName)
+    val result = cacheRetry({
+      val p = wsk.pkg.get(packageName)
+      p.getFieldListJsObject("actions") should have size 1
 
 Review comment:
   Retry only needs to be around pkg.get?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to