Skip to content

Commit e3f9ead

Browse files
committed
Fix test cases.
1 parent ac002a1 commit e3f9ead

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/src/test/scala/org/apache/openwhisk/core/scheduler/container/test/CreationJobManagerTests.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
package org.apache.openwhisk.core.scheduler.container.test
1919

20-
import java.util.concurrent.TimeUnit
2120
import akka.actor.{ActorRef, ActorRefFactory, ActorSystem, Props}
2221
import akka.testkit.{ImplicitSender, TestActorRef, TestKit, TestProbe}
2322
import com.ibm.etcd.client.{EtcdClient => Client}
2423
import common.StreamLogging
2524
import org.apache.openwhisk.common.TransactionId
25+
import org.apache.openwhisk.core.WhiskConfig
2626
import org.apache.openwhisk.core.connector._
2727
import org.apache.openwhisk.core.entity.ExecManifest.{ImageName, RuntimeManifest}
2828
import org.apache.openwhisk.core.entity._
@@ -32,14 +32,13 @@ import org.apache.openwhisk.core.scheduler.container._
3232
import org.apache.openwhisk.core.scheduler.message._
3333
import org.apache.openwhisk.core.scheduler.queue.{MemoryQueueKey, MemoryQueueValue, QueuePool}
3434
import org.apache.openwhisk.core.service.{RegisterData, UnregisterData}
35-
import org.apache.openwhisk.core.{ConfigKeys, WhiskConfig}
3635
import org.junit.runner.RunWith
3736
import org.scalamock.scalatest.MockFactory
3837
import org.scalatest.concurrent.ScalaFutures
3938
import org.scalatest.junit.JUnitRunner
4039
import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach, FlatSpecLike, Matchers}
41-
import pureconfig.loadConfigOrThrow
4240

41+
import java.util.concurrent.TimeUnit
4342
import scala.concurrent.duration.{DurationInt, FiniteDuration}
4443
import scala.concurrent.{ExecutionContextExecutor, Future}
4544

tests/src/test/scala/org/apache/openwhisk/core/scheduler/queue/test/MemoryQueueFlowTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ class MemoryQueueFlowTests
501501

502502
// max retention size is 10 and throttling fraction is 0.8
503503
// queue will be action throttled at 10 messages and disabled action throttling at 8 messages
504-
val queueConfig = QueueConfig(5 seconds, 10 seconds, 10 seconds, 5 seconds, 10, 5000, 0.8, 10)
504+
val queueConfig = QueueConfig(5 seconds, 10 seconds, 10 seconds, 5 seconds, 10, 5000, 10000, 0.8, 10)
505505

506506
// limit is 1
507507
val getUserLimit = (_: String) => Future.successful(1)

0 commit comments

Comments
 (0)