diff --git a/test/parallel/test-setproctitle.js b/test/parallel/test-setproctitle.js index 39ed2e506c965e..672b6f037d8a61 100644 --- a/test/parallel/test-setproctitle.js +++ b/test/parallel/test-setproctitle.js @@ -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;