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:
parent
932dbf8a96
commit
f18d5cdd1b
@ -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 () => {
|
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
|
// we choose the free env
|
||||||
const computeEnv = computeEnvs.find((ce) => ce.priceMin === 0)
|
const computeEnv = computeEnvs.find((ce) => ce.priceMin === 0)
|
||||||
assert(computeEnv, 'Cannot find the free compute env')
|
assert(computeEnv, 'Cannot find the free compute env')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user