Fix: Update e2e test to allow 'unknown' platform

- Updated `test/scheduler-preflight-lock.e2e.test.mjs` to expect `detectPlatform() || 'unknown'` instead of hardcoding `'codex'`.
- This ensures the test passes in CI environments where `detectPlatform()` returns `null`, causing the script to default to `'unknown'`, as well as in local environments where it detects a platform like `'jules'`. This aligns with the updated default logic in `run-scheduler-cycle.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-18 21:55:00 +00:00
1 parent f003970195
commit 23bb42a20c
1 file changed
+1 -1
+1 -1
View File
@@ -152,7 +152,7 @@ test('lock preflight e2e: successful lock writes completed status snapshot', { c
cadence: 'daily',
agent: 'agent-a',
status: 'completed',
platform: detectPlatform() || 'codex',
platform: detectPlatform() || 'unknown',
},
);
});