Skip to content

Commit cc1c766

Browse files
committed
[Temp] Add sleep between tests to analyze the issue.
1 parent a715757 commit cc1c766

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

tests/src/test/scala/org/apache/openwhisk/core/limits/ActionLimitsTests.scala

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,13 @@ import common.WskTestHelpers
3939
import common.WskActorSystem
4040
import spray.json._
4141
import spray.json.DefaultJsonProtocol._
42-
import org.apache.openwhisk.core.entity.{
43-
ActivationEntityLimit,
44-
ActivationResponse,
45-
ByteSize,
46-
ConcurrencyLimit,
47-
Exec,
48-
LogLimit,
49-
MemoryLimit,
50-
TimeLimit
51-
}
42+
import org.apache.openwhisk.core.entity.{ActivationEntityLimit, ActivationResponse, ByteSize, ConcurrencyLimit, Exec, LogLimit, MemoryLimit, TimeLimit}
5243
import org.apache.openwhisk.core.entity.size._
5344
import org.apache.openwhisk.http.Messages
45+
import org.scalatest.BeforeAndAfterAll
5446

5547
@RunWith(classOf[JUnitRunner])
56-
class ActionLimitsTests extends TestHelpers with WskTestHelpers with WskActorSystem with TimingHelpers {
48+
class ActionLimitsTests extends TestHelpers with WskTestHelpers with WskActorSystem with TimingHelpers with BeforeAndAfterAll {
5749

5850
implicit val wskprops = WskProps()
5951
val wsk = new WskRestOperations
@@ -77,6 +69,10 @@ class ActionLimitsTests extends TestHelpers with WskTestHelpers with WskActorSys
7769
// * With Docker 18.09.3, we observed test failures and changed to "openFileLimit - 24".
7870
val minExpectedOpenFiles = openFileLimit - 24
7971

72+
override protected def beforeAll(): Unit = {
73+
Thread.sleep(60000);
74+
}
75+
8076
behavior of "Action limits"
8177

8278
/**

0 commit comments

Comments
 (0)