mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
adds delay to Publish flow tests
This commit is contained in:
parent
09d15b3947
commit
8ad834e2a8
@ -23,6 +23,12 @@ import {
|
|||||||
Files
|
Files
|
||||||
} from '../../src/@types'
|
} from '../../src/@types'
|
||||||
|
|
||||||
|
function delay(interval: number) {
|
||||||
|
return it('should delay', (done) => {
|
||||||
|
setTimeout(() => done(), interval)
|
||||||
|
}).timeout(interval + 100)
|
||||||
|
}
|
||||||
|
|
||||||
describe('Publish tests', async () => {
|
describe('Publish tests', async () => {
|
||||||
let config: Config
|
let config: Config
|
||||||
let addresses: any
|
let addresses: any
|
||||||
@ -191,6 +197,8 @@ describe('Publish tests', async () => {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
delay(10000)
|
||||||
|
|
||||||
it('should resolve the fixed price dataset', async () => {
|
it('should resolve the fixed price dataset', async () => {
|
||||||
const resolvedDDO = await aquarius.waitForAqua(fixedPricedDID)
|
const resolvedDDO = await aquarius.waitForAqua(fixedPricedDID)
|
||||||
assert(resolvedDDO, 'Cannot fetch DDO from Aquarius')
|
assert(resolvedDDO, 'Cannot fetch DDO from Aquarius')
|
||||||
@ -282,6 +290,8 @@ describe('Publish tests', async () => {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
delay(10000)
|
||||||
|
|
||||||
it('should resolve the free dataset', async () => {
|
it('should resolve the free dataset', async () => {
|
||||||
const resolvedDDO = await aquarius.waitForAqua(dispenserDID)
|
const resolvedDDO = await aquarius.waitForAqua(dispenserDID)
|
||||||
assert(resolvedDDO, 'Cannot fetch DDO from Aquarius')
|
assert(resolvedDDO, 'Cannot fetch DDO from Aquarius')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user