File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,14 @@ import Piscina from '..';
22import { resolve } from 'path' ;
33import { 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 ) ;
You can’t perform that action at this time.
0 commit comments