mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-03 15:27:56 +01:00
test(setup): mark the sub-second wait bound as the contract (gstack-timing-ok)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
d92db87703
commit
336bbbc643
1 file changed
+1
@@ -279,6 +279,7 @@ describe('setup: Chromium bootstrap block executes best-effort', () => {
|
||||
'_wait_with_deadline $! 90 || echo "RC=$?"',
|
||||
].join('\n'), { timeout: 10_000 });
|
||||
expect(r.stdout).toBe('RC=3\n');
|
||||
// gstack-timing-ok: a sub-second return is the contract; the old 1 s poll took 1,008 ms, this path takes ~0.2 s
|
||||
expect(Date.now() - t0).toBeLessThan(500);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user