Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Feb 22, 2024
1 parent b983087 commit c319a24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/clusters.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ describe('pollForCluster', () => {
cluster: Object.assign(Object.assign({}, responseCluster), { status: "provisioning" }),
}));
await mockServer.forGet(`/cluster/${responseCluster.id}`).thenReply(404);
expect(() => {
(0, clusters_1.pollForStatus)(apiClient, "1234abcd", "running", 120, 1);
expect(async () => {
await (0, clusters_1.pollForStatus)(apiClient, "1234abcd", "running", 120, 1);
}).toThrow(clusters_1.StatusError);
});
});
4 changes: 2 additions & 2 deletions src/clusters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ describe('pollForCluster', () => {
}));
await mockServer.forGet(`/cluster/${responseCluster.id}`).thenReply(404);

expect(() => {
pollForStatus(apiClient, "1234abcd", "running", 120, 1);
expect(async () => {
await pollForStatus(apiClient, "1234abcd", "running", 120, 1);
}).toThrow(StatusError);
});
});

0 comments on commit c319a24

Please sign in to comment.