rabbah commented on a change in pull request #3103: Rewrite wsk basic tests
URL:
https://github.com/apache/incubator-openwhisk/pull/3103#discussion_r161284586
##########
File path: tests/src/test/scala/system/basic/WskBasicTests.scala
##########
@@ -393,9 +400,9 @@ class WskBasicTests extends TestHelpers with
WskTestHelpers {
action.create(name, Some(TestUtils.getTestActionFilename("wc.js")))
}
- wsk.action
- .invoke(name, Map("payload" -> "one two three".toJson), result = true)
- .stdout should include regex (""""count": 3""")
+ val result = wsk.action
+ .invoke(name, Map("payload" -> "one two three".toJson), blocking = true,
result = true)
+ result.stdout should include regex (""""count":3""")
Review comment:
this check is weaker now - it should be:
result.stdout.parseJson.asJsObject shouldBe JsObject("count" -> JsNumber(3))
----------------------------------------------------------------
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