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 a1539a0 some minor test cleanup (#153)
a1539a0 is described below
commit a1539a0fec44c3684a5dd339b142dfd308f2e19a
Author: Jason Peterson <[email protected]>
AuthorDate: Wed Jun 20 22:26:24 2018 -0400
some minor test cleanup (#153)
---
tests/src/test/scala/system/packages/AlarmsFeedTests.scala | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/tests/src/test/scala/system/packages/AlarmsFeedTests.scala
b/tests/src/test/scala/system/packages/AlarmsFeedTests.scala
index 131d52a..390f0e1 100644
--- a/tests/src/test/scala/system/packages/AlarmsFeedTests.scala
+++ b/tests/src/test/scala/system/packages/AlarmsFeedTests.scala
@@ -35,12 +35,11 @@ class AlarmsFeedTests
val wskprops = WskProps()
val wsk = new Wsk
-
val defaultAction = Some(TestUtils.getTestActionFilename("hello.js"))
behavior of "Alarms trigger service"
- it should "should disable after reaching max triggers" in
withAssetCleaner(wskprops) {
+ it should "disable after reaching max triggers" in
withAssetCleaner(wskprops) {
(wp, assetHelper) =>
implicit val wskprops = wp // shadow global props and make implicit
val triggerName = s"dummyAlarmsTrigger-${System.currentTimeMillis}"
@@ -69,7 +68,7 @@ class AlarmsFeedTests
trigger.create(name, feed = Some(s"$packageName/alarm"),
parameters = Map(
"trigger_payload" -> "alarmTest".toJson,
"cron" -> "* * * * * *".toJson,
- "maxTriggers" -> 3.toJson))
+ "maxTriggers" -> 1.toJson))
}
// create rule
@@ -78,9 +77,9 @@ class AlarmsFeedTests
}
// get activation list of the trigger
- val activations = wsk.activation.pollFor(N = 4, Some(triggerName),
retries = 30).length
+ val activations = wsk.activation.pollFor(N = 2, Some(triggerName),
retries = 30).length
println(s"Found activation size: $activations")
- activations should be(3)
+ activations should be(1)
}
it should "update cron, startDate and stopDate parameters" in
withAssetCleaner(wskprops) {