diff options
Diffstat (limited to 'server/tests/api/check-params/videos-filter.ts')
-rw-r--r-- | server/tests/api/check-params/videos-filter.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/api/check-params/videos-filter.ts b/server/tests/api/check-params/videos-filter.ts index cbfdef1db..e4e799cc7 100644 --- a/server/tests/api/check-params/videos-filter.ts +++ b/server/tests/api/check-params/videos-filter.ts | |||
@@ -3,16 +3,16 @@ | |||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import { | 4 | import { |
5 | cleanupTests, | 5 | cleanupTests, |
6 | flushAndRunServer, | 6 | createSingleServer, |
7 | makeGetRequest, | 7 | makeGetRequest, |
8 | ServerInfo, | 8 | PeerTubeServer, |
9 | setAccessTokensToServers, | 9 | setAccessTokensToServers, |
10 | setDefaultVideoChannel | 10 | setDefaultVideoChannel |
11 | } from '../../../../shared/extra-utils' | 11 | } from '../../../../shared/extra-utils' |
12 | import { UserRole } from '../../../../shared/models/users' | 12 | import { UserRole } from '../../../../shared/models/users' |
13 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' | 13 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' |
14 | 14 | ||
15 | async function testEndpoints (server: ServerInfo, token: string, filter: string, statusCodeExpected: HttpStatusCode) { | 15 | async function testEndpoints (server: PeerTubeServer, token: string, filter: string, statusCodeExpected: HttpStatusCode) { |
16 | const paths = [ | 16 | const paths = [ |
17 | '/api/v1/video-channels/root_channel/videos', | 17 | '/api/v1/video-channels/root_channel/videos', |
18 | '/api/v1/accounts/root/videos', | 18 | '/api/v1/accounts/root/videos', |
@@ -34,7 +34,7 @@ async function testEndpoints (server: ServerInfo, token: string, filter: string, | |||
34 | } | 34 | } |
35 | 35 | ||
36 | describe('Test video filters validators', function () { | 36 | describe('Test video filters validators', function () { |
37 | let server: ServerInfo | 37 | let server: PeerTubeServer |
38 | let userAccessToken: string | 38 | let userAccessToken: string |
39 | let moderatorAccessToken: string | 39 | let moderatorAccessToken: string |
40 | 40 | ||
@@ -43,7 +43,7 @@ describe('Test video filters validators', function () { | |||
43 | before(async function () { | 43 | before(async function () { |
44 | this.timeout(30000) | 44 | this.timeout(30000) |
45 | 45 | ||
46 | server = await flushAndRunServer(1) | 46 | server = await createSingleServer(1) |
47 | 47 | ||
48 | await setAccessTokensToServers([ server ]) | 48 | await setAccessTokensToServers([ server ]) |
49 | await setDefaultVideoChannel([ server ]) | 49 | await setDefaultVideoChannel([ server ]) |