Skip to content

Commit f971916

Browse files
committed
test: fix too optimistic guess in setproctitle
PR-URL: #12792 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 3f48ab3 commit f971916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-setproctitle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const path = require('path');
1414
// The title shouldn't be too long; libuv's uv_set_process_title() out of
1515
// security considerations no longer overwrites envp, only argv, so the
1616
// maximum title length is possibly quite short.
17-
let title = 'test';
17+
let title = String(process.pid);
1818

1919
assert.notStrictEqual(process.title, title);
2020
process.title = title;

0 commit comments

Comments
 (0)