diff --git a/test/test.js b/test/test.js index a96caf4..ddb3f1f 100644 --- a/test/test.js +++ b/test/test.js @@ -2944,8 +2944,8 @@ const y = x()` }), test('async/await move_cursor before code evaluated', async () => { - const i = test_initial_state(` - await new Promise(resolve => globalThis.setTimeout(resolve, 1)) + const i = test_initial_state(` + await new Promise(resolve => null) `) const moved = COMMANDS.move_cursor(i, 0) // No assertion, must not throw