Remove redundant await
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 7 Oct 2022 20:46:59 +0000 (22:46 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 7 Oct 2022 20:46:59 +0000 (22:46 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/worker-files/cluster/asyncWorker.js
tests/worker-files/cluster/longRunningWorkerHardBehavior.js
tests/worker-files/cluster/longRunningWorkerSoftBehavior.js
tests/worker-files/thread/asyncWorker.js
tests/worker-files/thread/longRunningWorkerHardBehavior.js
tests/worker-files/thread/longRunningWorkerSoftBehavior.js

index 70db6a8777966c681e010803a7c6562cc36a5ea3..bceaffaee96e0e32f7f22c151930acfb0c57b3d8 100644 (file)
@@ -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, {
index 5c0b620239bdee156e8193cc43bc97d7bd70feed..73fdad01706c896c943b0291cb6da16bd8282ad5 100644 (file)
@@ -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, {
index ea53bbea5b42cbc2b83474074430101d59cb33f6..5498752fad17ca839415de018309205bab74102e 100644 (file)
@@ -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, {
index 730d10ce26385e3ca1a88ab50dd59e4257d290eb..6508d6dac5d313bcd41b458643fa1a7efd3d1124 100644 (file)
@@ -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, {
index 120e8e5ffa3e4ce457225d831a5c8556a28027cb..3c707eb55548adeb2ac587381161bb41d8adb084 100644 (file)
@@ -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, {
index 1204809334544c44ca2eae19374bde4bc527b8af..65195d6f64388aaf7cc3e78eacf58ca35355a319 100644 (file)
@@ -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, {