Skip to content

Commit 5c20243

Browse files
Wait more time
1 parent 22636b8 commit 5c20243

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,15 @@ class QueueManagerTests
547547
it should "not skip outdated activation when the revision is older than the one in a datastore" in {
548548
stream.reset()
549549
val mockEtcdClient = mock[EtcdClient]
550+
(mockEtcdClient
551+
.get(_: String))
552+
.expects(*)
553+
.returning(
554+
Future.successful(
555+
RangeResponse
556+
.newBuilder()
557+
.addKvs(KeyValue.newBuilder().setKey("test").setValue(schedulerEndpoint.serialize).build())
558+
.build()))
550559
val dataManagementService = getTestDataManagementService()
551560
val watcher = TestProbe()
552561

@@ -617,7 +626,7 @@ class QueueManagerTests
617626
QueueManagerConfig(maxRetriesToGetQueue = 2, maxSchedulingTime = 10 seconds)))
618627

619628
queueManager ! activationMessage
620-
Thread.sleep(100)
629+
Thread.sleep(1000)
621630
(mockEtcdClient.get _) verify (*) repeated (3)
622631
}
623632

0 commit comments

Comments
 (0)