markusthoemmes 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_r204348809
 
 

 ##########
 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:
   To clarify: I don't think there's an issue due to cross-controller cache 
race conditions here, but rather the view computing the summary of the package 
is eventually consistent. In either case, the retry is needed.

----------------------------------------------------------------
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