Fix tests

pull/4429/head
Chocobozzz 2021-09-09 09:55:20 +02:00
parent afe501a6cd
commit 8de589b953
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -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
}