From 49919ca16ba2c100cd444fa5e66442d1b13758c7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 16 Jun 2020 16:36:02 +0200 Subject: More robust max bitrate calculation --- shared/extra-utils/users/user-notifications.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shared/extra-utils/users') diff --git a/shared/extra-utils/users/user-notifications.ts b/shared/extra-utils/users/user-notifications.ts index 30c36a388..a17a39de9 100644 --- a/shared/extra-utils/users/user-notifications.ts +++ b/shared/extra-utils/users/user-notifications.ts @@ -546,7 +546,10 @@ async function prepareNotificationsTest (serversCount = 3) { const servers = await flushAndRunMultipleServers(serversCount, overrideConfig) await setAccessTokensToServers(servers) - await doubleFollow(servers[0], servers[1]) + + if (serversCount > 1) { + await doubleFollow(servers[0], servers[1]) + } const user = { username: 'user_1', -- cgit v1.2.3