From f18d5cdd1b198cf8b61e89bc7457f30801862572 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Mon, 22 Aug 2022 17:10:06 +0300 Subject: [PATCH] add sleep --- test/integration/ComputeFlow.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/ComputeFlow.test.ts b/test/integration/ComputeFlow.test.ts index f2f8cf4d..6485f46c 100644 --- a/test/integration/ComputeFlow.test.ts +++ b/test/integration/ComputeFlow.test.ts @@ -499,6 +499,9 @@ describe('Simple compute tests', async () => { }) it('should restart a computeJob without paying anything, because order is valid and providerFees are still valid', async () => { + // wait some time so the other compute job finishes his job + await sleep(2000) + // we choose the free env const computeEnv = computeEnvs.find((ce) => ce.priceMin === 0) assert(computeEnv, 'Cannot find the free compute env')