Skip to content

Commit 08d743b

Browse files
committed
test(cli): avoid run-id sentinel collision with temp paths
1 parent fb2a21b commit 08d743b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎src/__tests__/cli-config-trust.test.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('project config rejects remote connection fields before daemon dispatch wit
2020
daemonAuthToken: 'token-123',
2121
daemonTransport: 'http',
2222
tenant: 'tenant-123',
23-
runId: 'run-123',
23+
runId: 'config-run-secret-9f4c2a',
2424
leaseId: 'lease-123',
2525
platform: 'ios',
2626
}),
@@ -37,7 +37,10 @@ test('project config rejects remote connection fields before daemon dispatch wit
3737
const output = `${result.stdout}\n${result.stderr}`;
3838
assert.match(output, /daemonBaseUrl/);
3939
assert.match(output, /not allowed in project config file/i);
40-
assert.doesNotMatch(output, /daemon\.example\.test|token-123|tenant-123|run-123|lease-123/);
40+
assert.doesNotMatch(
41+
output,
42+
/daemon\.example\.test|token-123|tenant-123|config-run-secret-9f4c2a|lease-123/,
43+
);
4144

4245
fs.rmSync(root, { recursive: true, force: true });
4346
});

0 commit comments

Comments
 (0)