From da56cf23cfa6878bda3aafcfcd73bbcbdabc7e25 Mon Sep 17 00:00:00 2001 From: Cole Snodgrass Date: Tue, 11 Oct 2022 13:29:41 -0700 Subject: [PATCH] reuse existing ports for test --- .../airbyte/workers/process/KubePodProcessIntegrationTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/airbyte-workers/src/test-integration/java/io/airbyte/workers/process/KubePodProcessIntegrationTest.java b/airbyte-workers/src/test-integration/java/io/airbyte/workers/process/KubePodProcessIntegrationTest.java index 9ea78f2f4ac6..7dcbdb3cdfb5 100644 --- a/airbyte-workers/src/test-integration/java/io/airbyte/workers/process/KubePodProcessIntegrationTest.java +++ b/airbyte-workers/src/test-integration/java/io/airbyte/workers/process/KubePodProcessIntegrationTest.java @@ -118,8 +118,7 @@ public void testInitKubePortManagerSingletonTwice() throws Exception { KubePortManagerSingleton originalKubePortManager = KubePortManagerSingleton.getInstance(); // init the second time with the same ports - final List theSameOpenPorts = new ArrayList<>(getOpenPorts(30)); - KubePortManagerSingleton.init(new HashSet<>(theSameOpenPorts.subList(1, theSameOpenPorts.size() - 1))); + KubePortManagerSingleton.init(new HashSet<>(openPorts.subList(1, openPorts.size() - 1))); assertEquals(originalKubePortManager, KubePortManagerSingleton.getInstance()); // init the second time with different ports