import 'mocha'
import { expect } from 'chai'
-import { HttpStatusCode } from '@shared/models'
import {
checkVideoFilesWereRemoved,
cleanupTests,
- doubleFollow,
createMultipleServers,
+ doubleFollow,
makeGetRequest,
makePostBodyRequest,
- PluginsCommand,
PeerTubeServer,
+ PluginsCommand,
setAccessTokensToServers,
waitJobs
} from '@shared/extra-utils'
+import { HttpStatusCode } from '@shared/models'
function postCommand (server: PeerTubeServer, command: string, bodyArg?: object) {
const body = { command }
this.timeout(40000)
// Should not throw -> video exists
- await servers[0].videos.get({ id: videoUUID })
+ const video = await servers[0].videos.get({ id: videoUUID })
// Should delete the video
await servers[0].videos.view({ id: videoUUID })
if (err.message.includes('exists')) throw err
}
- await checkVideoFilesWereRemoved(videoUUID, servers[0])
+ await checkVideoFilesWereRemoved({ server: servers[0], video })
})
it('Should have fetched the video by URL', async function () {