diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-05 10:58:44 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa (patch) | |
tree | c4984e854f5dc18e5c27afd73b843bd52c143034 /shared/utils/server | |
parent | 07b1a18aa678d260009a93e36606c5c5f585723d (diff) | |
download | PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.tar.gz PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.tar.zst PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.zip |
Add playlist rest tests
Diffstat (limited to 'shared/utils/server')
-rw-r--r-- | shared/utils/server/servers.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/utils/server/servers.ts b/shared/utils/server/servers.ts index bde7dd5c2..5288d253a 100644 --- a/shared/utils/server/servers.ts +++ b/shared/utils/server/servers.ts | |||
@@ -6,6 +6,7 @@ import { root, wait } from '../miscs/miscs' | |||
6 | import { readdir, readFile } from 'fs-extra' | 6 | import { readdir, readFile } from 'fs-extra' |
7 | import { existsSync } from 'fs' | 7 | import { existsSync } from 'fs' |
8 | import { expect } from 'chai' | 8 | import { expect } from 'chai' |
9 | import { VideoChannel } from '../../models/videos' | ||
9 | 10 | ||
10 | interface ServerInfo { | 11 | interface ServerInfo { |
11 | app: ChildProcess, | 12 | app: ChildProcess, |
@@ -25,6 +26,7 @@ interface ServerInfo { | |||
25 | } | 26 | } |
26 | 27 | ||
27 | accessToken?: string | 28 | accessToken?: string |
29 | videoChannel?: VideoChannel | ||
28 | 30 | ||
29 | video?: { | 31 | video?: { |
30 | id: number | 32 | id: number |
@@ -39,6 +41,8 @@ interface ServerInfo { | |||
39 | id: number | 41 | id: number |
40 | uuid: string | 42 | uuid: string |
41 | } | 43 | } |
44 | |||
45 | videos?: { id: number, uuid: string }[] | ||
42 | } | 46 | } |
43 | 47 | ||
44 | function flushAndRunMultipleServers (totalServers: number, configOverride?: Object) { | 48 | function flushAndRunMultipleServers (totalServers: number, configOverride?: Object) { |