Skip to content

Commit

Permalink
cleanup instance (apache#2879)
Browse files Browse the repository at this point in the history
Fix flaky test getAllInstances - clean up added instances
  • Loading branch information
GrantPSpencer authored and Harrison Tin committed Aug 23, 2024
1 parent 3773b4d commit 5e97f11
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> partitionsToSetToError = Arrays.asList(CLUSTER_NAME + dbName + "7");

Expand Down

0 comments on commit 5e97f11

Please sign in to comment.