Rename folder
authorShinigami92 <chrissi92@hotmail.de>
Sun, 14 Feb 2021 13:39:37 +0000 (14:39 +0100)
committerShinigami92 <chrissi92@hotmail.de>
Sun, 14 Feb 2021 13:39:37 +0000 (14:39 +0100)
15 files changed:
tests/pools/cluster/dynamic.test.js
tests/pools/cluster/fixed.test.js
tests/pools/thread/dynamic.test.js
tests/pools/thread/fixed.test.js
tests/worker-files/cluster/asyncErrorWorker.js [moved from tests/worker/cluster/asyncErrorWorker.js with 100% similarity]
tests/worker-files/cluster/asyncWorker.js [moved from tests/worker/cluster/asyncWorker.js with 100% similarity]
tests/worker-files/cluster/echoWorker.js [moved from tests/worker/cluster/echoWorker.js with 100% similarity]
tests/worker-files/cluster/emptyWorker.js [moved from tests/worker/cluster/emptyWorker.js with 100% similarity]
tests/worker-files/cluster/errorWorker.js [moved from tests/worker/cluster/errorWorker.js with 100% similarity]
tests/worker-files/cluster/testWorker.js [moved from tests/worker/cluster/testWorker.js with 100% similarity]
tests/worker-files/thread/asyncWorker.js [moved from tests/worker/thread/asyncWorker.js with 100% similarity]
tests/worker-files/thread/echoWorker.js [moved from tests/worker/thread/echoWorker.js with 100% similarity]
tests/worker-files/thread/emptyWorker.js [moved from tests/worker/thread/emptyWorker.js with 100% similarity]
tests/worker-files/thread/errorWorker.js [moved from tests/worker/thread/errorWorker.js with 100% similarity]
tests/worker-files/thread/testWorker.js [moved from tests/worker/thread/testWorker.js with 100% similarity]

index 6a82b05712a5f5dac09ddedc324f608c78db8b0d..36d17d8695f37c4698a294b7e66b2f28a4beb4a3 100644 (file)
@@ -5,7 +5,7 @@ const max = 3
 const pool = new DynamicClusterPool(
   min,
   max,
-  './tests/worker/cluster/testWorker.js',
+  './tests/worker-files/cluster/testWorker.js',
   {
     errorHandler: e => console.error(e),
     onlineHandler: () => console.log('worker is online')
@@ -82,7 +82,7 @@ describe('Dynamic cluster pool test suite ', () => {
     const pool1 = new DynamicClusterPool(
       1,
       1,
-      './tests/worker/cluster/testWorker.js'
+      './tests/worker-files/cluster/testWorker.js'
     )
     const res = await pool1.execute({ test: 'test' })
     expect(res).toBeFalsy()
index d22f697a5d3893863c5c60798cd8d77a7dd7e451..1cbfadf5b63ad3e029b61d47e24f6d6d9a445467 100644 (file)
@@ -4,7 +4,7 @@ const numberOfWorkers = 10
 const maxTasks = 500
 const pool = new FixedClusterPool(
   numberOfWorkers,
-  './tests/worker/cluster/testWorker.js',
+  './tests/worker-files/cluster/testWorker.js',
   {
     errorHandler: e => console.error(e),
     onlineHandler: () => console.log('worker is online')
@@ -12,12 +12,15 @@ const pool = new FixedClusterPool(
 )
 const emptyPool = new FixedClusterPool(
   1,
-  './tests/worker/cluster/emptyWorker.js'
+  './tests/worker-files/cluster/emptyWorker.js'
+)
+const echoPool = new FixedClusterPool(
+  1,
+  './tests/worker-files/cluster/echoWorker.js'
 )
-const echoPool = new FixedClusterPool(1, './tests/worker/cluster/echoWorker.js')
 const errorPool = new FixedClusterPool(
   1,
-  './tests/worker/cluster/errorWorker.js',
+  './tests/worker-files/cluster/errorWorker.js',
   {
     errorHandler: e => console.error(e),
     onlineHandler: () => console.log('worker is online')
@@ -26,14 +29,14 @@ const errorPool = new FixedClusterPool(
 
 const asyncErrorPool = new FixedClusterPool(
   1,
-  './tests/worker/cluster/asyncErrorWorker.js',
+  './tests/worker-files/cluster/asyncErrorWorker.js',
   {
     onlineHandler: () => console.log('worker is online')
   }
 )
 const asyncPool = new FixedClusterPool(
   1,
-  './tests/worker/cluster/asyncWorker.js',
+  './tests/worker-files/cluster/asyncWorker.js',
   {
     maxTasks: maxTasks
   }
@@ -140,7 +143,7 @@ describe('Fixed cluster pool test suite ', () => {
   it('Should work even without opts in input', async () => {
     const pool1 = new FixedClusterPool(
       1,
-      './tests/worker/cluster/testWorker.js'
+      './tests/worker-files/cluster/testWorker.js'
     )
     const res = await pool1.execute({ test: 'test' })
     expect(res).toBeFalsy()
index 98a0dd0f0d180076f4a87a17f7e9bbe1ee050310..5f6dc8ba47cb92fe26aefc82a767dd2acaa2ec9b 100644 (file)
@@ -5,7 +5,7 @@ const max = 3
 const pool = new DynamicThreadPool(
   min,
   max,
-  './tests/worker/thread/testWorker.js',
+  './tests/worker-files/thread/testWorker.js',
   {
     errorHandler: e => console.error(e),
     onlineHandler: () => console.log('worker is online')
@@ -80,7 +80,7 @@ describe('Dynamic thread pool test suite ', () => {
     const pool1 = new DynamicThreadPool(
       1,
       1,
-      './tests/worker/thread/testWorker.js'
+      './tests/worker-files/thread/testWorker.js'
     )
     const res = await pool1.execute({ test: 'test' })
     expect(res).toBeFalsy()
index a5ec3f0a8a63e720b1c789e9a23249a1ca866a4f..ff945a700f6bf6efe85359b260499597c3497a1c 100644 (file)
@@ -4,17 +4,23 @@ const numberOfThreads = 10
 const maxTasks = 400
 const pool = new FixedThreadPool(
   numberOfThreads,
-  './tests/worker/thread/testWorker.js',
+  './tests/worker-files/thread/testWorker.js',
   {
     errorHandler: e => console.error(e),
     onlineHandler: () => console.log('worker is online')
   }
 )
-const emptyPool = new FixedThreadPool(1, './tests/worker/thread/emptyWorker.js')
-const echoPool = new FixedThreadPool(1, './tests/worker/thread/echoWorker.js')
+const emptyPool = new FixedThreadPool(
+  1,
+  './tests/worker-files/thread/emptyWorker.js'
+)
+const echoPool = new FixedThreadPool(
+  1,
+  './tests/worker-files/thread/echoWorker.js'
+)
 const errorPool = new FixedThreadPool(
   1,
-  './tests/worker/thread/errorWorker.js',
+  './tests/worker-files/thread/errorWorker.js',
   {
     errorHandler: e => console.error(e),
     onlineHandler: () => console.log('worker is online')
@@ -22,7 +28,7 @@ const errorPool = new FixedThreadPool(
 )
 const asyncPool = new FixedThreadPool(
   1,
-  './tests/worker/thread/asyncWorker.js',
+  './tests/worker-files/thread/asyncWorker.js',
   { maxTasks: maxTasks }
 )
 
@@ -111,7 +117,10 @@ describe('Fixed thread pool test suite ', () => {
   })
 
   it('Should work even without opts in input', async () => {
-    const pool1 = new FixedThreadPool(1, './tests/worker/thread/testWorker.js')
+    const pool1 = new FixedThreadPool(
+      1,
+      './tests/worker-files/thread/testWorker.js'
+    )
     const res = await pool1.execute({ test: 'test' })
     expect(res).toBeFalsy()
   })