diff options
author | 2022-11-23 07:14:33 -0800 | |
---|---|---|
committer | 2022-11-23 07:14:33 -0800 | |
commit | ac36ea51cfb85130403ac09299f8e1207bad4bcb (patch) | |
tree | a05bc2d34295bc0087b68b799155f18050451721 /test/bun.js/node-timers.test.ts | |
parent | ae3fcb5bd89a4ac908ba6d4cdb1be4e7c7f0ea81 (diff) | |
download | bun-ac36ea51cfb85130403ac09299f8e1207bad4bcb.tar.gz bun-ac36ea51cfb85130403ac09299f8e1207bad4bcb.tar.zst bun-ac36ea51cfb85130403ac09299f8e1207bad4bcb.zip |
possibly more reliable Bun.spawn (#1547)
* wip
* wip
* Fix bug with stdin
* zig fmt
* seems to work!
* Update streams.test.js
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'test/bun.js/node-timers.test.ts')
-rw-r--r-- | test/bun.js/node-timers.test.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/bun.js/node-timers.test.ts b/test/bun.js/node-timers.test.ts new file mode 100644 index 000000000..a1f2d08a4 --- /dev/null +++ b/test/bun.js/node-timers.test.ts @@ -0,0 +1,10 @@ +import { test } from "bun:test"; +import { setTimeout } from "node:timers"; + +test("unref is possible", () => { + const timer = setTimeout(() => { + throw new Error("should not be called"); + }, 1000); + timer.unref(); + clearTimeout(timer); +}); |