]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/live/live-socket-messages.ts
Display avatar in embed poster
[github/Chocobozzz/PeerTube.git] / server / tests / api / live / live-socket-messages.ts
index 2a1f9f108bbd86ebeb20bd9e1801e03c55f7ce62..50b16443eee9e48e7fcf9429fbf7920d18f01922 100644 (file)
@@ -2,6 +2,7 @@
 
 import 'mocha'
 import * as chai from 'chai'
+import { wait } from '@shared/core-utils'
 import { VideoPrivacy, VideoState } from '@shared/models'
 import {
   cleanupTests,
@@ -11,10 +12,9 @@ import {
   setAccessTokensToServers,
   setDefaultVideoChannel,
   stopFfmpeg,
-  wait,
   waitJobs,
   waitUntilLivePublishedOnAllServers
-} from '../../../../shared/extra-utils'
+} from '@shared/server-commands'
 
 const expect = chai.expect
 
@@ -143,8 +143,6 @@ describe('Test live', function () {
       await servers[0].videos.view({ id: liveVideoUUID })
       await servers[1].videos.view({ id: liveVideoUUID })
 
-      await waitJobs(servers)
-      await wait(5000)
       await waitJobs(servers)
 
       expect(localLastVideoViews).to.equal(2)