markusthoemmes commented on a change in pull request #2246: To resolve #2245 -
optimize container removal
URL:
https://github.com/apache/incubator-openwhisk/pull/2246#discussion_r116659277
##########
File path:
tests/src/test/scala/whisk/core/containerpool/test/ContainerPoolTests.scala
##########
@@ -365,7 +430,7 @@ class ContainerPoolObjectTests extends FlatSpec with
Matchers with MockFactory {
'second -> freeWorker(second),
'oldest -> freeWorker(oldest))
- ContainerPool.remove(EntityName(commonNamespace), pool) shouldBe
Some('oldest)
+ ContainerPool.remove(first.action, EntityName("anyNamespace"), pool)
shouldBe Some('oldest)
Review comment:
Should use `createAction()`. The relationship to the first warmed data is
not necessary here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services