You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2017/10/19 15:17:49 UTC
[incubator-openwhisk-package-alarms] branch master updated:
increase wait time on trigger creation and deletion (#100)
This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-package-alarms.git
The following commit(s) were added to refs/heads/master by this push:
new 0979894 increase wait time on trigger creation and deletion (#100)
0979894 is described below
commit 09798948b44231f79aa1a3db49d7c8b5c0a3680d
Author: Jason Peterson <ja...@us.ibm.com>
AuthorDate: Thu Oct 19 11:17:47 2017 -0400
increase wait time on trigger creation and deletion (#100)
---
tests/src/test/scala/system/health/AlarmsHealthFeedTests.scala | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/tests/src/test/scala/system/health/AlarmsHealthFeedTests.scala b/tests/src/test/scala/system/health/AlarmsHealthFeedTests.scala
index 7072289..80004ea 100644
--- a/tests/src/test/scala/system/health/AlarmsHealthFeedTests.scala
+++ b/tests/src/test/scala/system/health/AlarmsHealthFeedTests.scala
@@ -66,7 +66,7 @@ class AlarmsHealthFeedTests
feedCreationResult.stdout should include("ok")
println("waiting for triggers")
- val activations = wsk.activation.pollFor(N = 5, Some(triggerName)).length
+ val activations = wsk.activation.pollFor(N = 5, Some(triggerName), retries = 30).length
println(s"Found activation size (should be at least 5): $activations")
activations should be >= 5
@@ -74,7 +74,7 @@ class AlarmsHealthFeedTests
wsk.trigger.delete(triggerName)
// get activation list after delete of the trigger
- val activationsAfterDelete = wsk.activation.pollFor(N = 20, Some(triggerName), retries = 20).length
+ val activationsAfterDelete = wsk.activation.pollFor(N = 100, Some(triggerName), retries = 30).length
val now = Instant.now(Clock.systemUTC())
println(s"Found activation size after delete ($now): $activationsAfterDelete")
@@ -135,13 +135,12 @@ class AlarmsHealthFeedTests
// create whisk stuff
println(s"Creating trigger: $triggerName")
- val feedCreationResult = assetHelper.withCleaner(wsk.trigger, triggerName, confirmDelete = true) {
+ val feedCreationResult = assetHelper.withCleaner(wsk.trigger, triggerName) {
(trigger, name) =>
trigger.create(name, feed = Some(s"$packageName/alarm"), parameters = Map(
"trigger_payload" -> "alarmTest".toJson,
"cron" -> "* * * * * *".toJson,
- "maxTriggers" -> -1.toJson),
- expectedExitCode = 0)
+ "maxTriggers" -> (-1).toJson))
}
feedCreationResult.stderr should not include("error")
}
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].