From 8de589b95316bb95ee3626c4749b6963843fb0c0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 9 Sep 2021 09:55:20 +0200 Subject: Fix tests --- shared/extra-utils/videos/videos-command.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shared/extra-utils') diff --git a/shared/extra-utils/videos/videos-command.ts b/shared/extra-utils/videos/videos-command.ts index 63980c147..99f56a34c 100644 --- a/shared/extra-utils/videos/videos-command.ts +++ b/shared/extra-utils/videos/videos-command.ts @@ -449,7 +449,9 @@ export class VideosCommand extends AbstractCommand { const result = await this.sendResumableChunks({ ...options, pathUploadId, videoFilePath, size }) - await this.endResumableUpload({ ...options, pathUploadId }) + if (result.statusCode === HttpStatusCode.OK_200) { + await this.endResumableUpload({ ...options, expectedStatus: HttpStatusCode.NO_CONTENT_204, pathUploadId }) + } return result.body?.video || result.body as any } -- cgit v1.2.3