csantanapr closed pull request #100: increase test case wait time on trigger 
creation and deletion
URL: https://github.com/apache/incubator-openwhisk-package-alarms/pull/100
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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")
     }


 

----------------------------------------------------------------
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

Reply via email to