Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/pummel/test-timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const WINDOW = 200; // Why does this need to be so big?
assert.ok(diff > 0);
console.error(`diff: ${diff}`);

assert.ok(1000 <= diff && diff < 1000 + WINDOW);
assert.ok(Math.abs(diff - 1000) < WINDOW);
}), 1000);
}

Expand All @@ -61,7 +61,7 @@ const WINDOW = 200; // Why does this need to be so big?

const t = interval_count * 1000;

assert.ok(t <= diff && diff < t + (WINDOW * interval_count));
assert.ok(Math.abs(diff - t) < WINDOW && diff < t + (WINDOW * interval_count));
Comment thread
jakecastelli marked this conversation as resolved.
Outdated

assert.ok(interval_count <= 3, `interval_count: ${interval_count}`);
if (interval_count === 3)
Expand Down