From 1b8cfb78b3d0abbdf54cf34f60fc3de5926e82fa Mon Sep 17 00:00:00 2001 From: David Schott Date: Mon, 12 Oct 2020 11:45:52 -0400 Subject: [PATCH] remove unnecessary asserts --- .../plugins/kubernetes/KubernetesCloudTest.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/test/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloudTest.java b/src/test/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloudTest.java index b89f53304a..01f9d213fd 100644 --- a/src/test/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloudTest.java +++ b/src/test/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloudTest.java @@ -218,22 +218,9 @@ public KubernetesClient connect() { Label test = Label.get("test"); assertTrue(cloud.canProvision(test)); - // null/empty means unlimited Collection 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);