Skip to content

Commit ec1e391

Browse files
committed
fix test
1 parent 8118981 commit ec1e391

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/nice.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ import Piscina from '..';
22
import { resolve } from 'path';
33
import { test } from 'tap';
44

5-
test('can set niceness for threads on Linux', {
6-
skip: process.platform !== 'linux'
7-
}, async ({ equal }) => {
5+
test('can set niceness for threads on Linux', async ({ equal }) => {
86
const worker = new Piscina({
97
filename: resolve(__dirname, 'fixtures/eval.js'),
108
niceIncrement: 5
119
});
1210

1311
const currentNiceness = (await import('@napi-rs/nice')).nice(0);
14-
const result = await worker.runTask('require("@napi-rs/nice").nice()');
12+
const result = await worker.runTask('require("@napi-rs/nice").nice(0)');
1513

1614
// niceness is capped to 19 on Linux.
1715
const expected = Math.min(currentNiceness + 5, 19);

0 commit comments

Comments
 (0)