diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-17 15:44:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-17 15:47:54 +0200 |
commit | 863477173efa82a4412d2e522aa46462249f9199 (patch) | |
tree | 40f0ae28691780d79acef5ba4dbd2ef0694ce8ff /server/tests/api/live | |
parent | e0faa8ad6e18ce6248ef1ec93a59dab5b05be468 (diff) | |
download | PeerTube-863477173efa82a4412d2e522aa46462249f9199.tar.gz PeerTube-863477173efa82a4412d2e522aa46462249f9199.tar.zst PeerTube-863477173efa82a4412d2e522aa46462249f9199.zip |
Cleanup tests imports
Diffstat (limited to 'server/tests/api/live')
-rw-r--r-- | server/tests/api/live/live-constraints.ts | 4 | ||||
-rw-r--r-- | server/tests/api/live/live-fast-restream.ts | 4 | ||||
-rw-r--r-- | server/tests/api/live/live-permanent.ts | 4 | ||||
-rw-r--r-- | server/tests/api/live/live-rtmps.ts | 4 | ||||
-rw-r--r-- | server/tests/api/live/live-save-replay.ts | 4 | ||||
-rw-r--r-- | server/tests/api/live/live-socket-messages.ts | 4 | ||||
-rw-r--r-- | server/tests/api/live/live.ts | 4 |
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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { wait } from '@shared/core-utils' | 4 | import { wait } from '@shared/core-utils' |
5 | import { LiveVideoError, VideoPrivacy } from '@shared/models' | 5 | import { LiveVideoError, VideoPrivacy } from '@shared/models' |
6 | import { | 6 | import { |
@@ -18,8 +18,6 @@ import { | |||
18 | } from '@shared/server-commands' | 18 | } from '@shared/server-commands' |
19 | import { checkLiveCleanup } from '../../shared' | 19 | import { checkLiveCleanup } from '../../shared' |
20 | 20 | ||
21 | const expect = chai.expect | ||
22 | |||
23 | describe('Test live constraints', function () { | 21 | describe('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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { wait } from '@shared/core-utils' | 4 | import { wait } from '@shared/core-utils' |
5 | import { HttpStatusCode, LiveVideoCreate, VideoPrivacy } from '@shared/models' | 5 | import { HttpStatusCode, LiveVideoCreate, VideoPrivacy } from '@shared/models' |
6 | import { | 6 | import { |
@@ -14,8 +14,6 @@ import { | |||
14 | waitJobs | 14 | waitJobs |
15 | } from '@shared/server-commands' | 15 | } from '@shared/server-commands' |
16 | 16 | ||
17 | const expect = chai.expect | ||
18 | |||
19 | describe('Fast restream in live', function () { | 17 | describe('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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { wait } from '@shared/core-utils' | 4 | import { wait } from '@shared/core-utils' |
5 | import { LiveVideoCreate, VideoPrivacy, VideoState } from '@shared/models' | 5 | import { LiveVideoCreate, VideoPrivacy, VideoState } from '@shared/models' |
6 | import { | 6 | import { |
@@ -15,8 +15,6 @@ import { | |||
15 | waitJobs | 15 | waitJobs |
16 | } from '@shared/server-commands' | 16 | } from '@shared/server-commands' |
17 | 17 | ||
18 | const expect = chai.expect | ||
19 | |||
20 | describe('Permanent live', function () { | 18 | describe('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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { buildAbsoluteFixturePath } from '@shared/core-utils' | 4 | import { buildAbsoluteFixturePath } from '@shared/core-utils' |
5 | import { VideoPrivacy } from '@shared/models' | 5 | import { VideoPrivacy } from '@shared/models' |
6 | import { | 6 | import { |
@@ -15,8 +15,6 @@ import { | |||
15 | waitUntilLivePublishedOnAllServers | 15 | waitUntilLivePublishedOnAllServers |
16 | } from '@shared/server-commands' | 16 | } from '@shared/server-commands' |
17 | 17 | ||
18 | const expect = chai.expect | ||
19 | |||
20 | describe('Test live RTMPS', function () { | 18 | describe('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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { FfmpegCommand } from 'fluent-ffmpeg' | 4 | import { FfmpegCommand } from 'fluent-ffmpeg' |
5 | import { checkLiveCleanup } from '@server/tests/shared' | 5 | import { checkLiveCleanup } from '@server/tests/shared' |
6 | import { wait } from '@shared/core-utils' | 6 | import { 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 | ||
25 | const expect = chai.expect | ||
26 | |||
27 | describe('Save replay setting', function () { | 25 | describe('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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { wait } from '@shared/core-utils' | 4 | import { wait } from '@shared/core-utils' |
5 | import { VideoPrivacy, VideoState } from '@shared/models' | 5 | import { VideoPrivacy, VideoState } from '@shared/models' |
6 | import { | 6 | import { |
@@ -15,8 +15,6 @@ import { | |||
15 | waitUntilLivePublishedOnAllServers | 15 | waitUntilLivePublishedOnAllServers |
16 | } from '@shared/server-commands' | 16 | } from '@shared/server-commands' |
17 | 17 | ||
18 | const expect = chai.expect | ||
19 | |||
20 | describe('Test live socket messages', function () { | 18 | describe('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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { basename, join } from 'path' | 4 | import { basename, join } from 'path' |
5 | import { ffprobePromise, getVideoStream } from '@server/helpers/ffmpeg' | 5 | import { ffprobePromise, getVideoStream } from '@server/helpers/ffmpeg' |
6 | import { checkLiveSegmentHash, checkResolutionsInMasterPlaylist, getAllFiles, testImage } from '@server/tests/shared' | 6 | import { 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 | ||
35 | const expect = chai.expect | ||
36 | |||
37 | describe('Test live', function () { | 35 | describe('Test live', function () { |
38 | let servers: PeerTubeServer[] = [] | 36 | let servers: PeerTubeServer[] = [] |
39 | let commands: LiveCommand[] | 37 | let commands: LiveCommand[] |