dubee commented on a change in pull request #247: Fix intermittent test failure URL: https://github.com/apache/incubator-openwhisk-cli/pull/247#discussion_r175927899
########## File path: tests/src/test/scala/system/basic/WskBasicTests.scala ########## @@ -549,13 +549,18 @@ 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 + + for (expectedItem <- expectedAnnotations) { Review comment: @mdeuser, giving it a try. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services