From 2b5bfdc46831f5659f242ca48a93e79cb14ca11b Mon Sep 17 00:00:00 2001 From: "davis.jaunzems" Date: Thu, 7 Feb 2019 09:03:51 +0100 Subject: [PATCH] updated test code --- test/test_child-pool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_child-pool.js b/test/test_child-pool.js index defaed9b8..bc6416823 100644 --- a/test/test_child-pool.js +++ b/test/test_child-pool.js @@ -144,11 +144,11 @@ describe('Child pool', function() { }); it('should kill child after processing is finished and not retain it', function() { - var processor = __dirname + '/fixtures/fixture_processor_bar.js'; + const processor = __dirname + '/fixtures/fixture_processor_bar.js'; pool.setReuseProcesses(false); - return pool.retain(processor).then(function(_child) { + return pool.retain(processor).then(_child => { expect(_child).to.be.ok; pool.release(_child);