Skip to content

Commit ecb01c3

Browse files
committed
chore: stop deleting snyk-monitor-test-deployment.yaml
it's in our .gitignore file and doesn't really do anything. this slightly simplifies our code. new tests just override it.
1 parent 973dbac commit ecb01c3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

test/setup/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readFileSync, unlinkSync, writeFileSync } from 'fs';
1+
import { readFileSync, writeFileSync } from 'fs';
22
import * as sleep from 'sleep-promise';
33
import * as uuidv4 from 'uuid/v4';
44
import { parse, stringify } from 'yaml';
@@ -67,13 +67,6 @@ export async function removeMonitor(): Promise<void> {
6767
} catch (error) {
6868
console.log(`Could not remove the Kubernetes-Monitor: ${error.message}`);
6969
}
70-
71-
console.log('Removing test YAML file...');
72-
try {
73-
unlinkSync('snyk-monitor-test-deployment.yaml');
74-
} catch (error) {
75-
console.log(`Could not delete the test YAML file: ${error.message}`);
76-
}
7770
}
7871

7972
async function createEnvironment(): Promise<void> {

0 commit comments

Comments
 (0)