[test] fix tests
authorliuwenzhe <liuwenzhe_neoye@163.com>
Thu, 21 May 2020 07:40:12 +0000 (15:40 +0800)
committerliuwenzhe <liuwenzhe_neoye@163.com>
Thu, 21 May 2020 07:40:12 +0000 (15:40 +0800)
tests/fixed.test.js

index b591c54c64f0a3e7e3664a16898569e66a1328ea..2ed97444bdb94a98f793f1833d027c0070f4b14b 100644 (file)
@@ -62,7 +62,7 @@ describe('Fixed thread pool test suite ', () => {
     const usedTime = new Date().getTime() - startTime
     expect(result).toBeTruthy()
     expect(result.f).toBe(data.f)
-    expect(usedTime).toBeGreaterThan(2000)
+    expect(usedTime).toBeGreaterThanOrEqual(2000)
   })
 
   it('Shutdown test', async () => {