From dee9c8b0f7a16da43b3975108c72d747e75239dd Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Tue, 2 May 2017 17:27:45 +0300 Subject: [PATCH] test: fix too optimistic guess in setproctitle --- test/parallel/test-setproctitle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;