From 5188f7998904d71324f8f3a039823e0799dfe2fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grant=20Pal=C3=A1u=20Spencer?= Date: Fri, 9 Aug 2024 12:13:19 -0700 Subject: [PATCH] cleanup instance (#2879) Fix flaky test getAllInstances - clean up added instances --- .../org/apache/helix/rest/server/TestPerInstanceAccessor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helix-rest/src/test/java/org/apache/helix/rest/server/TestPerInstanceAccessor.java b/helix-rest/src/test/java/org/apache/helix/rest/server/TestPerInstanceAccessor.java index 8ba32e0ccd..243406dc76 100644 --- a/helix-rest/src/test/java/org/apache/helix/rest/server/TestPerInstanceAccessor.java +++ b/helix-rest/src/test/java/org/apache/helix/rest/server/TestPerInstanceAccessor.java @@ -597,6 +597,9 @@ public void updateInstance() throws Exception { Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode()); Assert.assertTrue(evacuateFinishedResult.get("successful")); + // Remove instance created for evacuate test + delete("clusters/" + CLUSTER_NAME + "/instances/" + test_instance_name, Response.Status.OK.getStatusCode()); + // test setPartitionsToError List partitionsToSetToError = Arrays.asList(CLUSTER_NAME + dbName + "7");