Skip to content

Commit 91030c8

Browse files
committed
Start & stop Frida between every Node test
This solves some issues where it can become totally unresponsive - ensuring that subsequent tests recover, and that it's cleaned up so that CI retries work successfully. Note that the browser tests still use a single Frida process throughout.
1 parent 8e252ba commit 91030c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/frida-test-setup.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { delay, isNode } from './test-util';
33
if (isNode) {
44
const { startFridaServer, stopFridaServer } = require("./run-frida-server") as typeof import('./run-frida-server');
55

6-
before(() => startFridaServer());
7-
after(() => stopFridaServer());
6+
beforeEach(() => startFridaServer());
7+
afterEach(() => stopFridaServer());
88
} else {
99
before(async () => {
1010
// Wait just a moment to give Frida (started via package.json script) time to start up.

0 commit comments

Comments
 (0)