Skip to content

Commit

Permalink
test: fix too optimistic guess in setproctitle
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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 authored and Olivier Martin committed May 6, 2017
1 parent 15ea107 commit aecd0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-setproctitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aecd0f5

Please sign in to comment.