Skip to content
Permalink
Browse files

test: fix too optimistic guess in setproctitle

PR-URL: #12792
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
vsemozhetbyt committed May 2, 2017
1 parent 3f48ab3 commit f971916885a6df05f0c7b327f875cd2d6bf4d18b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit f971916

Please sign in to comment.
You can’t perform that action at this time.