You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ma...@apache.org on 2017/09/13 14:50:32 UTC
[incubator-openwhisk] branch master updated: Increase poll period
for tests to not fail on slow indexing. (#2738)
This is an automated email from the ASF dual-hosted git repository.
markusthoemmes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new d04c35a Increase poll period for tests to not fail on slow indexing. (#2738)
d04c35a is described below
commit d04c35a3e4870540de2dce3e2cb7e2f9769685f9
Author: Jeremias Werner <je...@gmail.com>
AuthorDate: Wed Sep 13 16:50:29 2017 +0200
Increase poll period for tests to not fail on slow indexing. (#2738)
---
tests/src/test/scala/common/WskTestHelpers.scala | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/tests/src/test/scala/common/WskTestHelpers.scala b/tests/src/test/scala/common/WskTestHelpers.scala
index 016d193..3996cf7 100644
--- a/tests/src/test/scala/common/WskTestHelpers.scala
+++ b/tests/src/test/scala/common/WskTestHelpers.scala
@@ -26,7 +26,6 @@ import scala.util.Failure
import scala.util.Try
import scala.concurrent.duration.Duration
import scala.concurrent.duration.DurationInt
-import scala.language.postfixOps
import spray.json._
@@ -75,7 +74,7 @@ case class ActivationResult(activationId: String,
val value = annotation(0).getFields("value")
assert(value.size == 1)
value(0)
- } toOption
+ }.toOption
}
}
@@ -199,9 +198,9 @@ trait WskTestHelpers extends Matchers {
def withActivation(
wsk: WskActivation,
run: RunResult,
- initialWait: Duration = 1 second,
- pollPeriod: Duration = 1 second,
- totalWait: Duration = 30 seconds)(check: ActivationResult => Unit)(implicit wskprops: WskProps): Unit = {
+ initialWait: Duration = 1.second,
+ pollPeriod: Duration = 1.second,
+ totalWait: Duration = 60.seconds)(check: ActivationResult => Unit)(implicit wskprops: WskProps): Unit = {
val activationId = wsk.extractActivationId(run)
withClue(s"did not find an activation id in '$run'") {
@@ -244,8 +243,8 @@ trait WskTestHelpers extends Matchers {
entity: String,
N: Int = 1,
since: Option[Instant] = None,
- pollPeriod: Duration = 1 second,
- totalWait: Duration = 30 seconds)(check: Seq[ActivationResult] => Unit)(implicit wskprops: WskProps): Unit = {
+ pollPeriod: Duration = 1.second,
+ totalWait: Duration = 60.seconds)(check: Seq[ActivationResult] => Unit)(implicit wskprops: WskProps): Unit = {
val activationIds =
wsk.pollFor(N, Some(entity), since = since, retries = (totalWait / pollPeriod).toInt, pollPeriod = pollPeriod)
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].