Documenation and improvements
[poolifier.git] / tests / util.test.js
index 0cba02ce65fdcd1c6448d0015373a2a1e52067b6..71782ea16b25769755be0ee68138284015e28cb5 100644 (file)
@@ -1,5 +1,5 @@
 const expect = require('expect')
-const { generateID, randomWorker } = require('../lib/util')
+const { generateID } = require('../lib/util')
 
 describe('Utility Tests ', () => {
   it('Generate an id', () => {
@@ -7,14 +7,4 @@ describe('Utility Tests ', () => {
     expect(res).toBeTruthy()
     expect(typeof res).toBe('string')
   })
-
-  it('Choose a random worker', () => {
-    const input = new Map()
-    input.set(1, 1)
-    input.set(2, 2)
-    input.set(3, 3)
-    const worker = randomWorker(input)
-    expect(worker).toBeTruthy()
-    expect(Array.from(input.keys()).includes(worker)).toBeTruthy()
-  })
 })