This is an automated email from the ASF dual-hosted git repository.

dubeejw 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 073ab19  use minutes instead of seconds in alarms test and make wait 
time configurable (#154)
073ab19 is described below

commit 073ab1992c70edb66dfd2bcc90f92a00abca62a6
Author: Jason Peterson <[email protected]>
AuthorDate: Thu Jun 21 12:07:49 2018 -0400

    use minutes instead of seconds in alarms test and make wait time 
configurable (#154)
---
 tests/src/test/scala/system/packages/AlarmsFeedTests.scala | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/src/test/scala/system/packages/AlarmsFeedTests.scala 
b/tests/src/test/scala/system/packages/AlarmsFeedTests.scala
index 390f0e1..05ee61b 100644
--- a/tests/src/test/scala/system/packages/AlarmsFeedTests.scala
+++ b/tests/src/test/scala/system/packages/AlarmsFeedTests.scala
@@ -36,6 +36,7 @@ class AlarmsFeedTests
     val wskprops = WskProps()
     val wsk = new Wsk
     val defaultAction = Some(TestUtils.getTestActionFilename("hello.js"))
+    val maxRetries = System.getProperty("max.retries", "100").toInt
 
     behavior of "Alarms trigger service"
 
@@ -67,7 +68,7 @@ class AlarmsFeedTests
                 (trigger, name) =>
                 trigger.create(name, feed = Some(s"$packageName/alarm"), 
parameters = Map(
                     "trigger_payload" -> "alarmTest".toJson,
-                    "cron" -> "* * * * * *".toJson,
+                    "cron" -> "* * * * *".toJson,
                     "maxTriggers" -> 1.toJson))
             }
 
@@ -77,7 +78,7 @@ class AlarmsFeedTests
             }
 
             // get activation list of the trigger
-            val activations = wsk.activation.pollFor(N = 2, Some(triggerName), 
retries = 30).length
+            val activations = wsk.activation.pollFor(N = 2, Some(triggerName), 
retries = maxRetries).length
             println(s"Found activation size: $activations")
             activations should be(1)
     }

Reply via email to