aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/live
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/live')
-rw-r--r--server/tests/api/live/live-constraints.ts4
-rw-r--r--server/tests/api/live/live-fast-restream.ts4
-rw-r--r--server/tests/api/live/live-permanent.ts4
-rw-r--r--server/tests/api/live/live-rtmps.ts4
-rw-r--r--server/tests/api/live/live-save-replay.ts4
-rw-r--r--server/tests/api/live/live-socket-messages.ts4
-rw-r--r--server/tests/api/live/live.ts4
7 files changed, 7 insertions, 21 deletions
diff --git a/server/tests/api/live/live-constraints.ts b/server/tests/api/live/live-constraints.ts
index 876538302..64ef73a2a 100644
--- a/server/tests/api/live/live-constraints.ts
+++ b/server/tests/api/live/live-constraints.ts
@@ -1,6 +1,6 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
5import { LiveVideoError, VideoPrivacy } from '@shared/models' 5import { LiveVideoError, VideoPrivacy } from '@shared/models'
6import { 6import {
@@ -18,8 +18,6 @@ import {
18} from '@shared/server-commands' 18} from '@shared/server-commands'
19import { checkLiveCleanup } from '../../shared' 19import { checkLiveCleanup } from '../../shared'
20 20
21const expect = chai.expect
22
23describe('Test live constraints', function () { 21describe('Test live constraints', function () {
24 let servers: PeerTubeServer[] = [] 22 let servers: PeerTubeServer[] = []
25 let userId: number 23 let userId: number
diff --git a/server/tests/api/live/live-fast-restream.ts b/server/tests/api/live/live-fast-restream.ts
index d3dae9e98..502959258 100644
--- a/server/tests/api/live/live-fast-restream.ts
+++ b/server/tests/api/live/live-fast-restream.ts
@@ -1,6 +1,6 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
5import { HttpStatusCode, LiveVideoCreate, VideoPrivacy } from '@shared/models' 5import { HttpStatusCode, LiveVideoCreate, VideoPrivacy } from '@shared/models'
6import { 6import {
@@ -14,8 +14,6 @@ import {
14 waitJobs 14 waitJobs
15} from '@shared/server-commands' 15} from '@shared/server-commands'
16 16
17const expect = chai.expect
18
19describe('Fast restream in live', function () { 17describe('Fast restream in live', function () {
20 let server: PeerTubeServer 18 let server: PeerTubeServer
21 19
diff --git a/server/tests/api/live/live-permanent.ts b/server/tests/api/live/live-permanent.ts
index da392ba84..5d227200e 100644
--- a/server/tests/api/live/live-permanent.ts
+++ b/server/tests/api/live/live-permanent.ts
@@ -1,6 +1,6 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
5import { LiveVideoCreate, VideoPrivacy, VideoState } from '@shared/models' 5import { LiveVideoCreate, VideoPrivacy, VideoState } from '@shared/models'
6import { 6import {
@@ -15,8 +15,6 @@ import {
15 waitJobs 15 waitJobs
16} from '@shared/server-commands' 16} from '@shared/server-commands'
17 17
18const expect = chai.expect
19
20describe('Permanent live', function () { 18describe('Permanent live', function () {
21 let servers: PeerTubeServer[] = [] 19 let servers: PeerTubeServer[] = []
22 let videoUUID: string 20 let videoUUID: string
diff --git a/server/tests/api/live/live-rtmps.ts b/server/tests/api/live/live-rtmps.ts
index 46cfef989..dcaee90cf 100644
--- a/server/tests/api/live/live-rtmps.ts
+++ b/server/tests/api/live/live-rtmps.ts
@@ -1,6 +1,6 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { buildAbsoluteFixturePath } from '@shared/core-utils' 4import { buildAbsoluteFixturePath } from '@shared/core-utils'
5import { VideoPrivacy } from '@shared/models' 5import { VideoPrivacy } from '@shared/models'
6import { 6import {
@@ -15,8 +15,6 @@ import {
15 waitUntilLivePublishedOnAllServers 15 waitUntilLivePublishedOnAllServers
16} from '@shared/server-commands' 16} from '@shared/server-commands'
17 17
18const expect = chai.expect
19
20describe('Test live RTMPS', function () { 18describe('Test live RTMPS', function () {
21 let server: PeerTubeServer 19 let server: PeerTubeServer
22 let rtmpUrl: string 20 let rtmpUrl: string
diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts
index 80df93924..7014292d0 100644
--- a/server/tests/api/live/live-save-replay.ts
+++ b/server/tests/api/live/live-save-replay.ts
@@ -1,6 +1,6 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { FfmpegCommand } from 'fluent-ffmpeg' 4import { FfmpegCommand } from 'fluent-ffmpeg'
5import { checkLiveCleanup } from '@server/tests/shared' 5import { checkLiveCleanup } from '@server/tests/shared'
6import { wait } from '@shared/core-utils' 6import { wait } from '@shared/core-utils'
@@ -22,8 +22,6 @@ import {
22 waitUntilLiveWaitingOnAllServers 22 waitUntilLiveWaitingOnAllServers
23} from '@shared/server-commands' 23} from '@shared/server-commands'
24 24
25const expect = chai.expect
26
27describe('Save replay setting', function () { 25describe('Save replay setting', function () {
28 let servers: PeerTubeServer[] = [] 26 let servers: PeerTubeServer[] = []
29 let liveVideoUUID: string 27 let liveVideoUUID: string
diff --git a/server/tests/api/live/live-socket-messages.ts b/server/tests/api/live/live-socket-messages.ts
index 7c2b449ac..62b7a6d22 100644
--- a/server/tests/api/live/live-socket-messages.ts
+++ b/server/tests/api/live/live-socket-messages.ts
@@ -1,6 +1,6 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai 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 { VideoPrivacy, VideoState } from '@shared/models'
6import { 6import {
@@ -15,8 +15,6 @@ import {
15 waitUntilLivePublishedOnAllServers 15 waitUntilLivePublishedOnAllServers
16} from '@shared/server-commands' 16} from '@shared/server-commands'
17 17
18const expect = chai.expect
19
20describe('Test live socket messages', function () { 18describe('Test live socket messages', function () {
21 let servers: PeerTubeServer[] = [] 19 let servers: PeerTubeServer[] = []
22 20
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts
index 8d3bf61a1..48982f4de 100644
--- a/server/tests/api/live/live.ts
+++ b/server/tests/api/live/live.ts
@@ -1,6 +1,6 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { basename, join } from 'path' 4import { basename, join } from 'path'
5import { ffprobePromise, getVideoStream } from '@server/helpers/ffmpeg' 5import { ffprobePromise, getVideoStream } from '@server/helpers/ffmpeg'
6import { checkLiveSegmentHash, checkResolutionsInMasterPlaylist, getAllFiles, testImage } from '@server/tests/shared' 6import { checkLiveSegmentHash, checkResolutionsInMasterPlaylist, getAllFiles, testImage } from '@server/tests/shared'
@@ -32,8 +32,6 @@ import {
32 waitUntilLivePublishedOnAllServers 32 waitUntilLivePublishedOnAllServers
33} from '@shared/server-commands' 33} from '@shared/server-commands'
34 34
35const expect = chai.expect
36
37describe('Test live', function () { 35describe('Test live', function () {
38 let servers: PeerTubeServer[] = [] 36 let servers: PeerTubeServer[] = []
39 let commands: LiveCommand[] 37 let commands: LiveCommand[]