From b36f41ca09e92ecb30d367d91d1089a23d10d585 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 14 Sep 2018 09:57:21 +0200 Subject: Add trending videos strategy --- server/tests/utils/server/servers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests/utils') diff --git a/server/tests/utils/server/servers.ts b/server/tests/utils/server/servers.ts index 1372c03c3..e95be4a16 100644 --- a/server/tests/utils/server/servers.ts +++ b/server/tests/utils/server/servers.ts @@ -35,7 +35,7 @@ interface ServerInfo { } } -function flushAndRunMultipleServers (totalServers) { +function flushAndRunMultipleServers (totalServers: number, configOverride?: Object) { let apps = [] let i = 0 @@ -53,7 +53,7 @@ function flushAndRunMultipleServers (totalServers) { for (let j = 1; j <= totalServers; j++) { // For the virtual buffer setTimeout(() => { - runServer(j).then(app => anotherServerDone(j, app)) + runServer(j, configOverride).then(app => anotherServerDone(j, app)) }, 1000 * (j - 1)) } }) -- cgit v1.2.3