diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-11 11:52:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-11 11:52:34 +0100 |
commit | 88108880bbdba473cfe36ecbebc1c3c4f972e102 (patch) | |
tree | b242efb3b4f0d7e49d88f2d1f2063b5b3b0489c0 /server/tests/api/videos/multiple-servers.ts | |
parent | 53a94c7cfa8368da4cd248d65df8346905938f0c (diff) | |
parent | 9b712a2017e4ab3cf12cd6bd58278905520159d0 (diff) | |
download | PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.tar.gz PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.tar.zst PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.zip |
Merge branch 'develop' into pr/1217
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r-- | server/tests/api/videos/multiple-servers.ts | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index 99b74ccff..1b471ba79 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.ts | |||
@@ -8,6 +8,7 @@ import { VideoPrivacy } from '../../../../shared/models/videos' | |||
8 | import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' | 8 | import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' |
9 | import { | 9 | import { |
10 | addVideoChannel, | 10 | addVideoChannel, |
11 | checkTmpIsEmpty, | ||
11 | checkVideoFilesWereRemoved, | 12 | checkVideoFilesWereRemoved, |
12 | completeVideoCheck, | 13 | completeVideoCheck, |
13 | createUser, | 14 | createUser, |
@@ -31,15 +32,15 @@ import { | |||
31 | viewVideo, | 32 | viewVideo, |
32 | wait, | 33 | wait, |
33 | webtorrentAdd | 34 | webtorrentAdd |
34 | } from '../../utils' | 35 | } from '../../../../shared/utils' |
35 | import { | 36 | import { |
36 | addVideoCommentReply, | 37 | addVideoCommentReply, |
37 | addVideoCommentThread, | 38 | addVideoCommentThread, |
38 | deleteVideoComment, | 39 | deleteVideoComment, |
39 | getVideoCommentThreads, | 40 | getVideoCommentThreads, |
40 | getVideoThreadComments | 41 | getVideoThreadComments |
41 | } from '../../utils/videos/video-comments' | 42 | } from '../../../../shared/utils/videos/video-comments' |
42 | import { waitJobs } from '../../utils/server/jobs' | 43 | import { waitJobs } from '../../../../shared/utils/server/jobs' |
43 | 44 | ||
44 | const expect = chai.expect | 45 | const expect = chai.expect |
45 | 46 | ||
@@ -995,19 +996,19 @@ describe('Test multiple servers', function () { | |||
995 | files: [ | 996 | files: [ |
996 | { | 997 | { |
997 | resolution: 720, | 998 | resolution: 720, |
998 | size: 36000 | 999 | size: 72000 |
999 | }, | 1000 | }, |
1000 | { | 1001 | { |
1001 | resolution: 480, | 1002 | resolution: 480, |
1002 | size: 21000 | 1003 | size: 45000 |
1003 | }, | 1004 | }, |
1004 | { | 1005 | { |
1005 | resolution: 360, | 1006 | resolution: 360, |
1006 | size: 17000 | 1007 | size: 34600 |
1007 | }, | 1008 | }, |
1008 | { | 1009 | { |
1009 | resolution: 240, | 1010 | resolution: 240, |
1010 | size: 13000 | 1011 | size: 24770 |
1011 | } | 1012 | } |
1012 | ] | 1013 | ] |
1013 | } | 1014 | } |
@@ -1016,6 +1017,14 @@ describe('Test multiple servers', function () { | |||
1016 | }) | 1017 | }) |
1017 | }) | 1018 | }) |
1018 | 1019 | ||
1020 | describe('TMP directory', function () { | ||
1021 | it('Should have an empty tmp directory', async function () { | ||
1022 | for (const server of servers) { | ||
1023 | await checkTmpIsEmpty(server) | ||
1024 | } | ||
1025 | }) | ||
1026 | }) | ||
1027 | |||
1019 | after(async function () { | 1028 | after(async function () { |
1020 | killallServers(servers) | 1029 | killallServers(servers) |
1021 | 1030 | ||