diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-03 11:38:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-03 14:49:15 +0200 |
commit | 26e3e98ff0e222a9fb9226938ac6902af77921bd (patch) | |
tree | 73d1c6f2524e380862d3365f12043fc319d40841 /server/tests/shared/notifications.ts | |
parent | 86c5229b4d726202378ef46854383bcafca22310 (diff) | |
download | PeerTube-26e3e98ff0e222a9fb9226938ac6902af77921bd.tar.gz PeerTube-26e3e98ff0e222a9fb9226938ac6902af77921bd.tar.zst PeerTube-26e3e98ff0e222a9fb9226938ac6902af77921bd.zip |
Support live session in server
Diffstat (limited to 'server/tests/shared/notifications.ts')
-rw-r--r-- | server/tests/shared/notifications.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/tests/shared/notifications.ts b/server/tests/shared/notifications.ts index 58d79d3aa..a62410880 100644 --- a/server/tests/shared/notifications.ts +++ b/server/tests/shared/notifications.ts | |||
@@ -16,7 +16,8 @@ import { | |||
16 | PeerTubeServer, | 16 | PeerTubeServer, |
17 | setAccessTokensToServers, | 17 | setAccessTokensToServers, |
18 | setDefaultAccountAvatar, | 18 | setDefaultAccountAvatar, |
19 | setDefaultChannelAvatar | 19 | setDefaultChannelAvatar, |
20 | setDefaultVideoChannel | ||
20 | } from '@shared/server-commands' | 21 | } from '@shared/server-commands' |
21 | import { MockSmtpServer } from './mock-servers' | 22 | import { MockSmtpServer } from './mock-servers' |
22 | 23 | ||
@@ -682,10 +683,14 @@ async function prepareNotificationsTest (serversCount = 3, overrideConfigArg: an | |||
682 | const servers = await createMultipleServers(serversCount, Object.assign(overrideConfig, overrideConfigArg)) | 683 | const servers = await createMultipleServers(serversCount, Object.assign(overrideConfig, overrideConfigArg)) |
683 | 684 | ||
684 | await setAccessTokensToServers(servers) | 685 | await setAccessTokensToServers(servers) |
686 | await setDefaultVideoChannel(servers) | ||
685 | await setDefaultChannelAvatar(servers) | 687 | await setDefaultChannelAvatar(servers) |
686 | await setDefaultAccountAvatar(servers) | 688 | await setDefaultAccountAvatar(servers) |
687 | 689 | ||
688 | if (servers[1]) await servers[1].config.enableStudio() | 690 | if (servers[1]) { |
691 | await servers[1].config.enableStudio() | ||
692 | await servers[1].config.enableLive({ allowReplay: true, transcoding: false }) | ||
693 | } | ||
689 | 694 | ||
690 | if (serversCount > 1) { | 695 | if (serversCount > 1) { |
691 | await doubleFollow(servers[0], servers[1]) | 696 | await doubleFollow(servers[0], servers[1]) |