diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/videos/resumable-upload.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/videos/resumable-upload.ts b/server/tests/api/videos/resumable-upload.ts index 4fc3317df..6c01c7e78 100644 --- a/server/tests/api/videos/resumable-upload.ts +++ b/server/tests/api/videos/resumable-upload.ts | |||
@@ -12,7 +12,6 @@ import { | |||
12 | flushAndRunServer, | 12 | flushAndRunServer, |
13 | getMyUserInformation, | 13 | getMyUserInformation, |
14 | prepareResumableUpload, | 14 | prepareResumableUpload, |
15 | sendDebugCommand, | ||
16 | sendResumableChunks, | 15 | sendResumableChunks, |
17 | ServerInfo, | 16 | ServerInfo, |
18 | setAccessTokensToServers, | 17 | setAccessTokensToServers, |
@@ -138,13 +137,13 @@ describe('Test resumable upload', function () { | |||
138 | }) | 137 | }) |
139 | 138 | ||
140 | it('Should not delete recent uploads', async function () { | 139 | it('Should not delete recent uploads', async function () { |
141 | await sendDebugCommand(server.url, server.accessToken, { command: 'remove-dandling-resumable-uploads' }) | 140 | await server.debugCommand.sendCommand({ body: { command: 'remove-dandling-resumable-uploads' } }) |
142 | 141 | ||
143 | expect(await countResumableUploads()).to.equal(2) | 142 | expect(await countResumableUploads()).to.equal(2) |
144 | }) | 143 | }) |
145 | 144 | ||
146 | it('Should delete old uploads', async function () { | 145 | it('Should delete old uploads', async function () { |
147 | await sendDebugCommand(server.url, server.accessToken, { command: 'remove-dandling-resumable-uploads' }) | 146 | await server.debugCommand.sendCommand({ body: { command: 'remove-dandling-resumable-uploads' } }) |
148 | 147 | ||
149 | expect(await countResumableUploads()).to.equal(0) | 148 | expect(await countResumableUploads()).to.equal(0) |
150 | }) | 149 | }) |