Skip to content

Commit 57ee6dd

Browse files
committed
fix(tests): remove fragile AbortSignal.timeout message assertion
Deno v2.7.14+ changed the TimeoutError message from "Signal timed out." to "The operation was aborted due to timeout" (denoland/deno#33460). The WHATWG spec does not mandate a specific message text, only the error name. Assert on error.name instead to be runtime-agnostic.
1 parent ea851a5 commit 57ee6dd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

tests/pools/thread/fixed.test.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ describe({
276276
}
277277
expect(error).toBeInstanceOf(Error)
278278
expect(error.name).toBe('TimeoutError')
279-
expect(error.message).toBe('Signal timed out.')
280279
expect(error.stack).toBeDefined()
281280

282281
const abortController = new AbortController()

0 commit comments

Comments
 (0)