From f971916885a6df05f0c7b327f875cd2d6bf4d18b 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 PR-URL: https://github.com/nodejs/node/pull/12792 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- 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 39ed2e506c9..672b6f037d8 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;