From: Jérôme Benoit Date: Fri, 7 Oct 2022 20:46:59 +0000 (+0200) Subject: Remove redundant await X-Git-Tag: v2.2.1~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9c8526b801b42a5b40bfa5cec6f6e2082ffc9da7;hp=cf597bc58029b9b5bf861c29fa9e917a6a72d859;p=poolifier.git Remove redundant await Signed-off-by: Jérôme Benoit --- diff --git a/tests/worker-files/cluster/asyncWorker.js b/tests/worker-files/cluster/asyncWorker.js index 70db6a87..bceaffae 100644 --- a/tests/worker-files/cluster/asyncWorker.js +++ b/tests/worker-files/cluster/asyncWorker.js @@ -3,7 +3,7 @@ const { ClusterWorker, KillBehaviors } = require('../../../lib/index') const TestUtils = require('../../test-utils') async function sleep (data) { - return await TestUtils.workerSleepFunction(data, 2000) + return TestUtils.workerSleepFunction(data, 2000) } module.exports = new ClusterWorker(sleep, { diff --git a/tests/worker-files/cluster/longRunningWorkerHardBehavior.js b/tests/worker-files/cluster/longRunningWorkerHardBehavior.js index 5c0b6202..73fdad01 100644 --- a/tests/worker-files/cluster/longRunningWorkerHardBehavior.js +++ b/tests/worker-files/cluster/longRunningWorkerHardBehavior.js @@ -3,7 +3,7 @@ const { ClusterWorker, KillBehaviors } = require('../../../lib/index') const TestUtils = require('../../test-utils') async function sleep (data) { - return await TestUtils.workerSleepFunction(data, 50000) + return TestUtils.workerSleepFunction(data, 50000) } module.exports = new ClusterWorker(sleep, { diff --git a/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js b/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js index ea53bbea..5498752f 100644 --- a/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js +++ b/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js @@ -3,7 +3,7 @@ const { ClusterWorker } = require('../../../lib/index') const TestUtils = require('../../test-utils') async function sleep (data) { - return await TestUtils.workerSleepFunction(data, 50000) + return TestUtils.workerSleepFunction(data, 50000) } module.exports = new ClusterWorker(sleep, { diff --git a/tests/worker-files/thread/asyncWorker.js b/tests/worker-files/thread/asyncWorker.js index 730d10ce..6508d6da 100644 --- a/tests/worker-files/thread/asyncWorker.js +++ b/tests/worker-files/thread/asyncWorker.js @@ -3,7 +3,7 @@ const { ThreadWorker, KillBehaviors } = require('../../../lib/index') const TestUtils = require('../../test-utils') async function sleep (data) { - return await TestUtils.workerSleepFunction(data, 2000) + return TestUtils.workerSleepFunction(data, 2000) } module.exports = new ThreadWorker(sleep, { diff --git a/tests/worker-files/thread/longRunningWorkerHardBehavior.js b/tests/worker-files/thread/longRunningWorkerHardBehavior.js index 120e8e5f..3c707eb5 100644 --- a/tests/worker-files/thread/longRunningWorkerHardBehavior.js +++ b/tests/worker-files/thread/longRunningWorkerHardBehavior.js @@ -3,7 +3,7 @@ const { ThreadWorker, KillBehaviors } = require('../../../lib/index') const TestUtils = require('../../test-utils') async function sleep (data) { - return await TestUtils.workerSleepFunction(data, 50000) + return TestUtils.workerSleepFunction(data, 50000) } module.exports = new ThreadWorker(sleep, { diff --git a/tests/worker-files/thread/longRunningWorkerSoftBehavior.js b/tests/worker-files/thread/longRunningWorkerSoftBehavior.js index 12048093..65195d6f 100644 --- a/tests/worker-files/thread/longRunningWorkerSoftBehavior.js +++ b/tests/worker-files/thread/longRunningWorkerSoftBehavior.js @@ -3,7 +3,7 @@ const { ThreadWorker } = require('../../../lib/index') const TestUtils = require('../../test-utils') async function sleep (data) { - return await TestUtils.workerSleepFunction(data, 50000) + return TestUtils.workerSleepFunction(data, 50000) } module.exports = new ThreadWorker(sleep, {