Explorar el Código

utils: loosen flaky test

Renée Kooi hace 4 años
padre
commit
29956dd9d3
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      packages/@uppy/utils/src/delay.test.js

+ 3 - 1
packages/@uppy/utils/src/delay.test.js

@@ -5,7 +5,9 @@ describe('delay', () => {
   it('should wait for the specified time', async () => {
     const start = Date.now()
     await delay(100)
-    expect(Date.now() - start).toBeGreaterThanOrEqual(100)
+    // 100 is less of a rule, more of a guideline
+    // according to CI
+    expect(Date.now() - start).toBeGreaterThanOrEqual(90)
   })
 
   it('should reject if signal is already aborted', async () => {