X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fmultiple-servers.ts;h=22d87b88cab763430fcf5ece141814374fc562e9;hb=941c5eac1751ef93500d6afa58c4575f777dbff9;hp=e7b57ba1f071be7e9468fc572f2b24fc515b1b62;hpb=69222afac8f8c41d90295b33f0695bbff352851e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index e7b57ba1f..22d87b88c 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.ts @@ -15,6 +15,7 @@ import { createUser, dateIsValid, doubleFollow, + flushAndRunServer, flushAndRunMultipleServers, getLocalVideos, getVideo, @@ -516,6 +517,8 @@ describe('Test multiple servers', function () { // Wait the repeatable job await wait(6000) + await waitJobs(servers) + for (const server of servers) { const res = await getVideosList(server.url) @@ -550,6 +553,8 @@ describe('Test multiple servers', function () { // Wait the repeatable job await wait(16000) + await waitJobs(servers) + let baseVideos = null for (const server of servers) { @@ -939,6 +944,8 @@ describe('Test multiple servers', function () { }) it('Should delete a remote thread by the origin server', async function () { + this.timeout(5000) + const res = await getVideoCommentThreads(servers[ 0 ].url, videoUUID, 0, 5) const threadId = res.body.data.find(c => c.text === 'my super second comment').id await deleteVideoComment(servers[ 0 ].url, servers[ 0 ].accessToken, videoUUID, threadId)