You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by du...@apache.org on 2018/02/16 02:57:55 UTC

[incubator-openwhisk] branch master updated: Remove expected duration from Swift test (#3292)

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


The following commit(s) were added to refs/heads/master by this push:
     new 70239ae  Remove expected duration from Swift test (#3292)
70239ae is described below

commit 70239ae3b885b9e5ffdca65ae97ceaaa2fac1a74
Author: James Dubee <jw...@us.ibm.com>
AuthorDate: Thu Feb 15 21:57:52 2018 -0500

    Remove expected duration from Swift test (#3292)
---
 tests/src/test/scala/whisk/core/cli/test/Swift311Tests.scala | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/tests/src/test/scala/whisk/core/cli/test/Swift311Tests.scala b/tests/src/test/scala/whisk/core/cli/test/Swift311Tests.scala
index 1dc19f0..b0b1fee 100644
--- a/tests/src/test/scala/whisk/core/cli/test/Swift311Tests.scala
+++ b/tests/src/test/scala/whisk/core/cli/test/Swift311Tests.scala
@@ -35,7 +35,6 @@ class Swift311Tests extends TestHelpers with WskTestHelpers with Matchers {
 
   implicit val wskprops = WskProps()
   val wsk = new WskRest
-  val expectedDuration = 45 seconds
   val activationPollDuration = 60 seconds
   val defaultJsAction = Some(TestUtils.getTestActionFilename("hello.js"))
 
@@ -52,7 +51,6 @@ class Swift311Tests extends TestHelpers with WskTestHelpers with Matchers {
       action.create(name, Some(TestUtils.getTestActionFilename("hello.swift")))
     }
 
-    val start = System.currentTimeMillis()
     withActivation(wsk.activation, wsk.action.invoke(name), totalWait = activationPollDuration) {
       _.response.result.get.toString should include("Hello stranger!")
     }
@@ -63,11 +61,6 @@ class Swift311Tests extends TestHelpers with WskTestHelpers with Matchers {
       totalWait = activationPollDuration) {
       _.response.result.get.toString should include("Hello Sir!")
     }
-
-    withClue("Test duration exceeds expectation (ms)") {
-      val duration = System.currentTimeMillis() - start
-      duration should be <= expectedDuration.toMillis
-    }
   }
 
   behavior of "Swift Whisk SDK tests"

-- 
To stop receiving notification emails like this one, please contact
dubeejw@apache.org.