Skip to content

Commit 519fb8f

Browse files
committed
Getting silly
1 parent 7d30753 commit 519fb8f

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

tests/tests.test.mjs

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,21 @@ describe('Slow(JavaScript): Runs tests', async function () {
9595
console.log(testResult.stdout);
9696
console.log(testResult.stderr);
9797

98-
expect(testResult.exitCode).to.eq(0, testResult.output);
98+
expect(testResult.exitCode).to.eq(0);
9999
} finally {
100-
server?.kill('SIGINT');
100+
console.log('KILLING');
101+
102+
server?.kill('SIGKILL');
101103
await server;
104+
105+
console.log('KILLED');
106+
}
107+
108+
try {
109+
await app.execa("pkill", ["-9", "-f", "ember"], { reject: false });
110+
await new Promise((resolve) => setTimeout(resolve, 1000));
111+
} catch {
112+
//
102113
}
103114
});
104115
});
@@ -203,10 +214,14 @@ describe('Slow(TypeScript): Runs tests', async function () {
203214
console.log(testResult.stdout);
204215
console.log(testResult.stderr);
205216

206-
expect(testResult.exitCode).to.eq(0, testResult.output);
217+
expect(testResult.exitCode).to.eq(0);
207218
} finally {
208-
server?.kill('SIGINT');
219+
console.log('KILLING');
220+
221+
server?.kill('SIGKILL');
209222
await server;
223+
224+
console.log('KILLED');
210225
}
211226
});
212227
});

0 commit comments

Comments
 (0)