Skip to content

Commit

Permalink
Enable this test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Nov 24, 2024
1 parent f8e87e3 commit 8869dda
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/js/web/abort/abort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,11 @@ describe("AbortSignal", () => {
expect(() => AbortSignal.timeout(timeout)).toThrow(TypeError);
});
}
// FIXME: test runner hangs when this is enabled
test.skip("timeout works", done => {
test("timeout works", done => {
const abort = AbortSignal.timeout(1);
abort.addEventListener("abort", event => {
done();
});
// AbortSignal.timeout doesn't keep the event loop / process alive
// so we set a no-op timeout
setTimeout(() => {}, 10);
});
});
describe("prototype", () => {
Expand Down

0 comments on commit 8869dda

Please sign in to comment.