You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/03/21 18:12:26 UTC

[GitHub] mdeuser closed pull request #247: Fix intermittent test failure

mdeuser closed pull request #247: Fix intermittent test failure
URL: https://github.com/apache/incubator-openwhisk-cli/pull/247
 
 
   

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/WskBasicTests.scala b/tests/src/test/scala/system/basic/WskBasicTests.scala
index 04ad24d7..01dd0fe2 100644
--- a/tests/src/test/scala/system/basic/WskBasicTests.scala
+++ b/tests/src/test/scala/system/basic/WskBasicTests.scala
@@ -549,13 +549,16 @@ class WskBasicTests extends TestHelpers with WskTestHelpers {
 
     result.fields("name") shouldBe name.toJson
     result.fields("namespace") shouldBe ns.toJson
-    result.fields("annotations") shouldBe JsArray(
+    val receivedAnnotations = result.fields("annotations").convertTo[JsArray].elements
+    val expectedAnnotations = JsArray(
       JsObject("key" -> JsString("description"), "value" -> JsString("Trigger description")),
       JsObject(
         "key" -> JsString("parameters"),
         "value" -> JsArray(
           JsObject("description" -> JsString("Parameter description 1"), "name" -> JsString("paramName1")),
-          JsObject("description" -> JsString("Parameter description 2"), "name" -> JsString("paramName2")))))
+          JsObject("description" -> JsString("Parameter description 2"), "name" -> JsString("paramName2"))))).elements
+
+    receivedAnnotations should contain theSameElementsAs expectedAnnotations
   }
 
   it should "create a trigger with a name that contains spaces" in withAssetCleaner(wskprops) { (wp, assetHelper) =>


 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services