adds delay to Publish flow tests

This commit is contained in:
Bogdan Fazakas 2023-05-22 08:54:29 +03:00
parent 09d15b3947
commit 8ad834e2a8
1 changed files with 10 additions and 0 deletions

View File

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