X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Ftranscoding%2Fupdate-while-transcoding.ts;h=61655f102100dbb133d17cf9d72f6f06743ba1c9;hb=f89189907bbdff6c4bc6d3460ed9ef4c49515f17;hp=f4d7281188664367568c905dd5d6d7751dc91b69;hpb=41cde76bbf5ac16a90b5f158672523069db74009;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/transcoding/update-while-transcoding.ts b/server/tests/api/transcoding/update-while-transcoding.ts index f4d728118..61655f102 100644 --- a/server/tests/api/transcoding/update-while-transcoding.ts +++ b/server/tests/api/transcoding/update-while-transcoding.ts @@ -135,17 +135,23 @@ describe('Test update video privacy while transcoding', function () { describe('With object storage enabled', function () { if (areMockObjectStorageTestsDisabled()) return + const objectStorage = new ObjectStorageCommand() + before(async function () { this.timeout(120000) - const configOverride = ObjectStorageCommand.getDefaultMockConfig() - await ObjectStorageCommand.prepareDefaultMockBuckets() + const configOverride = objectStorage.getDefaultMockConfig() + await objectStorage.prepareDefaultMockBuckets() await servers[0].kill() await servers[0].run(configOverride) }) - runTestSuite(true, ObjectStorageCommand.getMockPlaylistBaseUrl()) + runTestSuite(true, objectStorage.getMockPlaylistBaseUrl()) + + after(async function () { + await objectStorage.cleanupMock() + }) }) after(async function () {