Skip to content

Commit 52fba24

Browse files
committed
chore: remove waitForMonitorToBeReady and use waitForPodsReady
Uses "kubectl wait" instead of looping and periodically grabbing information from the API server.
1 parent 4b02cd6 commit 52fba24

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

test/setup/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as uuidv4 from 'uuid/v4';
55
import platforms from './platforms';
66
import deployers from './deployers';
77
import * as kubectl from '../helpers/kubectl';
8-
import * as waiters from './waiters';
98

109
const testPlatform = process.env['TEST_PLATFORM'] || 'kind';
1110
const createCluster = process.env['CREATE_CLUSTER'] === 'true';
@@ -101,7 +100,7 @@ export async function deployMonitor(): Promise<string> {
101100
integrationId,
102101
deploymentImageOptions,
103102
);
104-
await waiters.waitForMonitorToBeReady();
103+
await kubectl.waitForDeployment('snyk-monitor', 'snyk-monitor');
105104
console.log(`Deployed the snyk-monitor with integration ID ${integrationId}`);
106105
return integrationId;
107106
} catch (err) {

test/setup/waiters.ts

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)