test: fix too optimistic guess in setproctitle
PR-URL: https://github.com/nodejs/node/pull/12792 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
3f48ab3042
commit
f971916885
@ -14,7 +14,7 @@ const path = require('path');
|
||||
// The title shouldn't be too long; libuv's uv_set_process_title() out of
|
||||
// security considerations no longer overwrites envp, only argv, so the
|
||||
// maximum title length is possibly quite short.
|
||||
let title = 'test';
|
||||
let title = String(process.pid);
|
||||
|
||||
assert.notStrictEqual(process.title, title);
|
||||
process.title = title;
|
||||
|
Loading…
x
Reference in New Issue
Block a user