aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/sleep.js
diff options
context:
space:
mode:
Diffstat (limited to 'integration/bunjs-only-snippets/sleep.js')
-rw-r--r--integration/bunjs-only-snippets/sleep.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/integration/bunjs-only-snippets/sleep.js b/integration/bunjs-only-snippets/sleep.js
index 9a62201c5..080597424 100644
--- a/integration/bunjs-only-snippets/sleep.js
+++ b/integration/bunjs-only-snippets/sleep.js
@@ -1,7 +1,7 @@
-const interval = 0.5;
+const interval = 0.01;
const now = performance.now();
console.time("Slept");
-Bun.sleep(interval);
+Bun.sleepSync(interval);
const elapsed = performance.now() - now;
if (elapsed < interval) {
throw new Error("Didn't sleep");