Skip to content

Commit

Permalink
test, refactor: stable os.cpus tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Dec 7, 2022
1 parent bfeccc6 commit 3bdac1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/os_test.js
Expand Up @@ -28,7 +28,10 @@ describe('os', () => {
assert.property(r[0], 'times');
});

for (var i = 0; i < 10000; i++) {
for (var i = 0; i < 1000; i++) {
for (var j = 0; j < 1000; j++)
Buffer.alloc(10000);

var r1 = os.cpus();
if (r[0].times.user != r1[0].times.user)
break;
Expand Down

0 comments on commit 3bdac1f

Please sign in to comment.