This is an automated email from the ASF dual-hosted git repository.
mdeuser pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git
The following commit(s) were added to refs/heads/master by this push:
new a9e183f Fix intermittent test failure (#247)
a9e183f is described below
commit a9e183fa336ec0ae698d9978ab545387a407c034
Author: James Dubee <[email protected]>
AuthorDate: Wed Mar 21 14:12:24 2018 -0400
Fix intermittent test failure (#247)
* Fix intermittent test failure
* Refactor
---
tests/src/test/scala/system/basic/WskBasicTests.scala | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tests/src/test/scala/system/basic/WskBasicTests.scala
b/tests/src/test/scala/system/basic/WskBasicTests.scala
index 3689f3b..ac162d6 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) =>
--
To stop receiving notification emails like this one, please contact
[email protected].