Fix failing test (#148)
diff --git a/tests/src/test/scala/system/packages/CloudantFeedTests.scala b/tests/src/test/scala/system/packages/CloudantFeedTests.scala
index f6390f3..f6f1c9e 100644
--- a/tests/src/test/scala/system/packages/CloudantFeedTests.scala
+++ b/tests/src/test/scala/system/packages/CloudantFeedTests.scala
@@ -573,7 +573,14 @@
"authKey" -> wskProps.authKey.toJson,
"query_params" -> JsObject("type" -> JsString("avocado"))
))
- feedUpdateResult.stdout should include("ok")
+
+ withActivation(wsk.activation, feedUpdateResult) {
+ activation =>
+ activation.response.success shouldBe true
+ }
+
+ println("Giving the trigger service a moment to process the update")
+ Thread.sleep(10000)
val runResult = wsk.action.invoke(actionName, parameters = Map(
"triggerName" -> triggerName.toJson,