summaryrefslogtreecommitdiffstats
path: root/node-admin/src/test/java
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2022-11-28 10:30:41 +0100
committerMartin Polden <mpolden@mpolden.no>2022-11-28 10:30:41 +0100
commitd64e398f394ca83ffaa2f3ef768d0fefd8ab67c4 (patch)
tree7726ff5a751fe09ec1eb6e403405f10d5af3a390 /node-admin/src/test/java
parent9a9317ee8476b8ac653903a30c295761fb6d24d6 (diff)
Update signature in mock
Diffstat (limited to 'node-admin/src/test/java')
-rw-r--r--node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/container/ContainerEngineMock.java2
-rw-r--r--node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImplTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/container/ContainerEngineMock.java b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/container/ContainerEngineMock.java
index d8888cb7267..744d78d83da 100644
--- a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/container/ContainerEngineMock.java
+++ b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/container/ContainerEngineMock.java
@@ -113,7 +113,7 @@ public class ContainerEngineMock implements ContainerEngine {
}
@Override
- public boolean shouldRecreate(NodeAgentContext context, Container container) {
+ public boolean shouldRecreate(NodeAgentContext context, Container container, ContainerResources wantedResources) {
return false;
}
diff --git a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImplTest.java b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImplTest.java
index 63a7242c96c..6e980b26cdf 100644
--- a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImplTest.java
+++ b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImplTest.java
@@ -360,7 +360,7 @@ public class NodeAgentImplTest {
.withRebootGeneration(wantedRebootGeneration)));
// Re-create if new container config needs to be applied
- when(containerOperations.shouldRecreate(eq(context), any())).thenReturn(true);
+ when(containerOperations.shouldRecreate(eq(context), any(), any())).thenReturn(true);
nodeAgent.doConverge(context);
verify(containerOperations, times(2)).removeContainer(eq(context), any());
verify(containerOperations, times(2)).createContainer(eq(context), any());