import 'mocha'
import {
flushAndRunMultipleServers,
- flushTests,
getVideo,
getVideoDescription,
getVideosList,
ServerInfo,
setAccessTokensToServers,
updateVideo,
- uploadVideo,
- wait
+ uploadVideo
} from '../../utils/index'
import { doubleFollow } from '../../utils/server/follows'
+import { waitJobs } from '../../utils/server/jobs'
const expect = chai.expect
}
await uploadVideo(servers[0].url, servers[0].accessToken, attributes)
- await wait(5000)
+ await waitJobs(servers)
const res = await getVideosList(servers[0].url)
}
await updateVideo(servers[0].url, servers[0].accessToken, videoId, attributes)
- await wait(5000)
+ await waitJobs(servers)
})
it('Should have a small description on each server', async function () {
after(async function () {
killallServers(servers)
-
- // Keep the logs if the test failed
- if (this['ok']) {
- await flushTests()
- }
})
})