adds delay to Publish flow tests
This commit is contained in:
parent
09d15b3947
commit
8ad834e2a8
|
@ -23,6 +23,12 @@ import {
|
|||
Files
|
||||
} from '../../src/@types'
|
||||
|
||||
function delay(interval: number) {
|
||||
return it('should delay', (done) => {
|
||||
setTimeout(() => done(), interval)
|
||||
}).timeout(interval + 100)
|
||||
}
|
||||
|
||||
describe('Publish tests', async () => {
|
||||
let config: Config
|
||||
let addresses: any
|
||||
|
@ -191,6 +197,8 @@ describe('Publish tests', async () => {
|
|||
)
|
||||
})
|
||||
|
||||
delay(10000)
|
||||
|
||||
it('should resolve the fixed price dataset', async () => {
|
||||
const resolvedDDO = await aquarius.waitForAqua(fixedPricedDID)
|
||||
assert(resolvedDDO, 'Cannot fetch DDO from Aquarius')
|
||||
|
@ -282,6 +290,8 @@ describe('Publish tests', async () => {
|
|||
)
|
||||
})
|
||||
|
||||
delay(10000)
|
||||
|
||||
it('should resolve the free dataset', async () => {
|
||||
const resolvedDDO = await aquarius.waitForAqua(dispenserDID)
|
||||
assert(resolvedDDO, 'Cannot fetch DDO from Aquarius')
|
||||
|
|
Loading…
Reference in New Issue