aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-31 09:31:28 +0200
committerChocobozzz <me@florianbigard.com>2023-07-31 09:31:28 +0200
commit5e1ced7067893d6601ef7f035d35f7870ab1e91d (patch)
tree2537679e4a866f388475d554f77381f7dad4d7f9 /server
parent257df4cb56b5f593d9509efc4c3f095c9d601a43 (diff)
downloadPeerTube-5e1ced7067893d6601ef7f035d35f7870ab1e91d.tar.gz
PeerTube-5e1ced7067893d6601ef7f035d35f7870ab1e91d.tar.zst
PeerTube-5e1ced7067893d6601ef7f035d35f7870ab1e91d.zip
Fix live tests
Diffstat (limited to 'server')
-rw-r--r--server/tests/api/live/live-socket-messages.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/live/live-socket-messages.ts b/server/tests/api/live/live-socket-messages.ts
index 62b7a6d22..0cccd1594 100644
--- a/server/tests/api/live/live-socket-messages.ts
+++ b/server/tests/api/live/live-socket-messages.ts
@@ -2,7 +2,7 @@
2 2
3import { expect } from 'chai' 3import { expect } from 'chai'
4import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
5import { VideoPrivacy, VideoState } from '@shared/models' 5import { LiveVideoEventPayload, VideoPrivacy, VideoState } from '@shared/models'
6import { 6import {
7 cleanupTests, 7 cleanupTests,
8 createMultipleServers, 8 createMultipleServers,
@@ -117,7 +117,7 @@ describe('Test live socket messages', function () {
117 const videoId = await servers[0].videos.getId({ uuid: liveVideoUUID }) 117 const videoId = await servers[0].videos.getId({ uuid: liveVideoUUID })
118 118
119 const localSocket = servers[0].socketIO.getLiveNotificationSocket() 119 const localSocket = servers[0].socketIO.getLiveNotificationSocket()
120 localSocket.on('views-change', data => { localLastVideoViews = data.views }) 120 localSocket.on('views-change', (data: LiveVideoEventPayload) => { localLastVideoViews = data.viewers })
121 localSocket.emit('subscribe', { videoId }) 121 localSocket.emit('subscribe', { videoId })
122 } 122 }
123 123
@@ -125,7 +125,7 @@ describe('Test live socket messages', function () {
125 const videoId = await servers[1].videos.getId({ uuid: liveVideoUUID }) 125 const videoId = await servers[1].videos.getId({ uuid: liveVideoUUID })
126 126
127 const remoteSocket = servers[1].socketIO.getLiveNotificationSocket() 127 const remoteSocket = servers[1].socketIO.getLiveNotificationSocket()
128 remoteSocket.on('views-change', data => { remoteLastVideoViews = data.views }) 128 remoteSocket.on('views-change', (data: LiveVideoEventPayload) => { remoteLastVideoViews = data.viewers })
129 remoteSocket.emit('subscribe', { videoId }) 129 remoteSocket.emit('subscribe', { videoId })
130 } 130 }
131 131