-- Harness fixture (NOT auto-discovered: lives under tests/harness/).
-- A single case that sleeps well past any harness timeout. The driving recipe
-- decides which layer cancels it: `test-timeout-lua` lets libtest fire via
-- `--timeout`, `test-timeout-shell` bypasses libtest (`--no-timeout`) so the
-- shell watchdog kills the process. See `just test-timeout`.
local createLibTest = require('/apis/libtest');

local testlib = createLibTest({ ... });

testlib.test('sleeps past the harness timeout', function()
  testlib.log('about to sleep 10s; the active harness timeout should cancel this first');
  sleep(10);
  testlib.assertTrue(true); -- never reached: a timeout layer cancels first
end);

testlib.run();
