You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cb...@apache.org on 2017/06/28 13:07:10 UTC

[incubator-openwhisk] branch master updated: Deterministic container removal for test.

This is an automated email from the ASF dual-hosted git repository.

cbickel 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 5ca4e16  Deterministic container removal for test.
5ca4e16 is described below

commit 5ca4e167fc55b63ee4ed14dfd3cf1d0a613ac973
Author: Markus Thoemmes <ma...@de.ibm.com>
AuthorDate: Wed Jun 28 14:23:40 2017 +0200

    Deterministic container removal for test.
---
 .../test/scala/whisk/core/containerpool/test/ContainerPoolTests.scala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/src/test/scala/whisk/core/containerpool/test/ContainerPoolTests.scala b/tests/src/test/scala/whisk/core/containerpool/test/ContainerPoolTests.scala
index d386597..f7bcdf1 100644
--- a/tests/src/test/scala/whisk/core/containerpool/test/ContainerPoolTests.scala
+++ b/tests/src/test/scala/whisk/core/containerpool/test/ContainerPoolTests.scala
@@ -175,14 +175,14 @@ class ContainerPoolTests extends TestKit(ActorSystem("ContainerPool"))
         // Run the first container
         pool ! runMessage
         containers(0).expectMsg(runMessage)
-        containers(0).send(pool, NeedWork(warmedData()))
+        containers(0).send(pool, NeedWork(warmedData(lastUsed = Instant.EPOCH)))
         containers(0).send(pool, ActivationCompleted)
         feed.expectMsg(ContainerReleased)
 
         // Run the second container, don't remove the first one
         pool ! runMessageDifferentEverything
         containers(1).expectMsg(runMessageDifferentEverything)
-        containers(1).send(pool, NeedWork(warmedData()))
+        containers(1).send(pool, NeedWork(warmedData(lastUsed = Instant.now)))
         containers(1).send(pool, ActivationCompleted)
         feed.expectMsg(ContainerReleased)
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].