Skip to content

Commit 5ca776e

Browse files
committed
fix: resolve no-promise-executor-return lint in test
1 parent be7758e commit 5ca776e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/agents/embedded-agent-runner/run/attempt.session-lock.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ describe("embedded attempt session lock lifecycle", () => {
257257
});
258258

259259
// Give the write time to acquire the retained lock.
260-
await new Promise((r) => setTimeout(r, 50));
260+
await new Promise<void>((r) => {
261+
setTimeout(r, 50);
262+
});
261263

262264
// Dispose while the write is stuck. The bounded wait should time out
263265
// and force-release rather than hanging.

0 commit comments

Comments
 (0)