mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-29 17:01:55 +00:00
fix(test): inject AGENT_PLATFORM=codex in scheduler cycle tests
- Explicitly sets `AGENT_PLATFORM: 'codex'` in `test/run-scheduler-cycle-memory-policy.test.mjs` for tests that assert platform-specific output. - Resolves CI failures where `detectPlatform` was falling back to `'unknown'` or the host environment's platform, causing assertion mismatches. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
e4fecf631b
commit
bf41f181ee
1 file changed
+2
-2
@@ -184,7 +184,7 @@ test('accepts required memory policy when markers or artifacts are produced', {
|
||||
|
||||
const result = await runNode(fixture.scriptPath, ['--cadence', 'daily'], {
|
||||
cwd: fixture.root,
|
||||
env: fixture.env,
|
||||
env: { ...fixture.env, AGENT_PLATFORM: 'codex' },
|
||||
});
|
||||
|
||||
assert.equal(result.code, 0, `stdout: ${result.stdout}\nstderr: ${result.stderr}`);
|
||||
@@ -209,7 +209,7 @@ test('records backend failure metadata when lock command exits with code 2', { c
|
||||
|
||||
const result = await runNode(fixture.scriptPath, ['--cadence', 'daily'], {
|
||||
cwd: fixture.root,
|
||||
env: fixture.env,
|
||||
env: { ...fixture.env, AGENT_PLATFORM: 'codex' },
|
||||
});
|
||||
|
||||
assert.equal(result.code, 2, `stdout: ${result.stdout}\nstderr: ${result.stderr}`);
|
||||
|
||||
Reference in new issue
Block a user