markusthoemmes closed pull request #3774: Add retry in WskRestBasicTests to 
avoid intermittent test failures
URL: https://github.com/apache/incubator-openwhisk/pull/3774
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tests/src/test/scala/system/basic/WskRestBasicTests.scala 
b/tests/src/test/scala/system/basic/WskRestBasicTests.scala
index 7412f9b030..485dc584e6 100644
--- a/tests/src/test/scala/system/basic/WskRestBasicTests.scala
+++ b/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
+      p
+    })
     val ns = wsk.namespace.whois()
     wsk.action.delete(packageName + "/" + actionName)
 


 

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