diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-24 15:22:56 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-25 10:07:51 +0100 |
commit | ca5c612bfdd225433bcc6ace01c8024df3f674ba (patch) | |
tree | 1b722cc346c9079c65338f0792ce7bcd2a20f8a0 /shared/extra-utils/miscs/miscs.ts | |
parent | 5a547f69d5dc5867e253f7721513479c754b4f15 (diff) | |
download | PeerTube-ca5c612bfdd225433bcc6ace01c8024df3f674ba.tar.gz PeerTube-ca5c612bfdd225433bcc6ace01c8024df3f674ba.tar.zst PeerTube-ca5c612bfdd225433bcc6ace01c8024df3f674ba.zip |
Add live transcoding bit rate tests
Diffstat (limited to 'shared/extra-utils/miscs/miscs.ts')
-rw-r--r-- | shared/extra-utils/miscs/miscs.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/extra-utils/miscs/miscs.ts b/shared/extra-utils/miscs/miscs.ts index 3c8191ae8..429083fe9 100644 --- a/shared/extra-utils/miscs/miscs.ts +++ b/shared/extra-utils/miscs/miscs.ts | |||
@@ -1,11 +1,11 @@ | |||
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 * as chai from 'chai' |
4 | import * as ffmpeg from 'fluent-ffmpeg' | ||
5 | import { ensureDir, pathExists, readFile, stat } from 'fs-extra' | ||
4 | import { basename, dirname, isAbsolute, join, resolve } from 'path' | 6 | import { basename, dirname, isAbsolute, join, resolve } from 'path' |
5 | import * as request from 'supertest' | 7 | import * as request from 'supertest' |
6 | import * as WebTorrent from 'webtorrent' | 8 | import * as WebTorrent from 'webtorrent' |
7 | import { ensureDir, pathExists, readFile, stat } from 'fs-extra' | ||
8 | import * as ffmpeg from 'fluent-ffmpeg' | ||
9 | 9 | ||
10 | const expect = chai.expect | 10 | const expect = chai.expect |
11 | let webtorrent: WebTorrent.Instance | 11 | let webtorrent: WebTorrent.Instance |
@@ -44,8 +44,8 @@ function root () { | |||
44 | return root | 44 | return root |
45 | } | 45 | } |
46 | 46 | ||
47 | function buildServerDirectory (internalServerNumber: number, directory: string) { | 47 | function buildServerDirectory (server: { internalServerNumber: number }, directory: string) { |
48 | return join(root(), 'test' + internalServerNumber, directory) | 48 | return join(root(), 'test' + server.internalServerNumber, directory) |
49 | } | 49 | } |
50 | 50 | ||
51 | async function testImage (url: string, imageName: string, imagePath: string, extension = '.jpg') { | 51 | async function testImage (url: string, imageName: string, imagePath: string, extension = '.jpg') { |