Skip to content

Commit 157e10d

Browse files
committed
reuse deletion
1 parent cdb4779 commit 157e10d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/integration/tools/atlas/clusters.test.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,7 @@ function sleep(ms: number): Promise<void> {
1111
// keeping it for cleanup scripts if needed
1212
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1313
async function deleteAndWaitCluster(session: Session, projectId: string, clusterName: string): Promise<void> {
14-
await session.apiClient.deleteCluster({
15-
params: {
16-
path: {
17-
groupId: projectId,
18-
clusterName,
19-
},
20-
},
21-
});
14+
await deleteCluster(session, projectId, clusterName);
2215
while (true) {
2316
try {
2417
await session.apiClient.getCluster({

0 commit comments

Comments
 (0)