Skip to content

Commit ba42e6c

Browse files
committed
Tighten Gemini review test assertion for tmux command
1 parent 4f0a6d0 commit ba42e6c

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/loop/tmux.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ test("runInTmux starts detached session and strips --tmux", () => {
3434
const calls: string[][] = [];
3535
const attaches: string[] = [];
3636
const logs: string[] = [];
37+
const command =
38+
"'env' 'LOOP_RUN_BASE=repo' 'LOOP_RUN_ID=1' 'bun' '/repo/src/loop.ts' '--proof' 'verify' 'fix bug'";
3739

3840
const delegated = runInTmux(["--tmux", "--proof", "verify", "fix bug"], {
3941
attach: (session: string) => {
@@ -62,13 +64,8 @@ test("runInTmux starts detached session and strips --tmux", () => {
6264
"repo-loop-1",
6365
"-c",
6466
"/repo",
65-
expect.stringContaining("env"),
67+
command,
6668
]);
67-
expect(calls[0]?.[7]).toContain("env");
68-
expect(calls[0]?.[7]).toContain("LOOP_RUN_BASE=repo");
69-
expect(calls[0]?.[7]).toContain("LOOP_RUN_ID=1");
70-
expect(calls[0]?.[7]).toContain("bun");
71-
expect(calls[0]?.[7]).toContain("/repo/src/loop.ts");
7269
expect(calls[1]).toEqual(["tmux", "has-session", "-t", "repo-loop-1"]);
7370
expect(calls[2]).toEqual([
7471
"tmux",

0 commit comments

Comments
 (0)