Skip to content

Commit 404ccfd

Browse files
test
1 parent 6273237 commit 404ccfd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/frida-tools/test/base.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ import { Effect, Layer } from "effect";
77
export const DeviceLive = FridaDevice.layerLocalDevice;
88
export const SessionLive = Layer.unwrapScoped(
99
Effect.gen(function* () {
10+
if ("CI" in process.env) {
11+
return FridaSession.layer("/usr/bin/sleep", ["infinity"]);
12+
}
13+
1014
const executor = yield* CommandExecutor.CommandExecutor;
1115
const command = Command.make("sleep", "infinity");
12-
const process = yield* executor.start(command);
13-
return FridaSession.layer(process.pid);
16+
const proc = yield* executor.start(command);
17+
return FridaSession.layer(proc.pid);
1418
})
1519
);
1620

0 commit comments

Comments
 (0)