diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-06 16:02:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | 883a9019085ff9013079d6b1539b86f2f519175a (patch) | |
tree | bf1f68340ee4b482f880753bdd4658e91aff8335 /server/tests/api | |
parent | a9c58393d36d221197b48884a1960e6126ab31d7 (diff) | |
download | PeerTube-883a9019085ff9013079d6b1539b86f2f519175a.tar.gz PeerTube-883a9019085ff9013079d6b1539b86f2f519175a.tar.zst PeerTube-883a9019085ff9013079d6b1539b86f2f519175a.zip |
Introduce debug command
Diffstat (limited to 'server/tests/api')
-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 | }) |