1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

add sleep

This commit is contained in:
Bogdan Fazakas 2022-08-22 17:10:06 +03:00
parent 932dbf8a96
commit f18d5cdd1b

View File

@ -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')