Skip to content

Commit

Permalink
remove unnecessary asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
schottsfired committed Oct 12, 2020
1 parent 6ece75d commit 1b8cfb7
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,22 +218,9 @@ public KubernetesClient connect() {
Label test = Label.get("test");
assertTrue(cloud.canProvision(test));

// null/empty means unlimited
Collection<NodeProvisioner.PlannedNode> plannedNodes = cloud.provision(test, 200);
assertEquals(200, plannedNodes.size());

// 0 also means unlimited
cloud.setContainerCapStr("0");
podTemplate.setInstanceCap(20);
plannedNodes = cloud.provision(test, 200);
assertEquals(20, plannedNodes.size());

// negative number also unlimited
cloud.setContainerCapStr("-42");
podTemplate.setInstanceCap(20);
plannedNodes = cloud.provision(test, 200);
assertEquals(20, plannedNodes.size());

cloud.setContainerCapStr("10");
podTemplate.setInstanceCap(20);
plannedNodes = cloud.provision(test, 200);
Expand Down

0 comments on commit 1b8cfb7

Please sign in to comment.