From ca5c612bfdd225433bcc6ace01c8024df3f674ba Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 24 Nov 2020 15:22:56 +0100 Subject: Add live transcoding bit rate tests --- shared/extra-utils/miscs/miscs.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shared/extra-utils/miscs') 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 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import * as chai from 'chai' +import * as ffmpeg from 'fluent-ffmpeg' +import { ensureDir, pathExists, readFile, stat } from 'fs-extra' import { basename, dirname, isAbsolute, join, resolve } from 'path' import * as request from 'supertest' import * as WebTorrent from 'webtorrent' -import { ensureDir, pathExists, readFile, stat } from 'fs-extra' -import * as ffmpeg from 'fluent-ffmpeg' const expect = chai.expect let webtorrent: WebTorrent.Instance @@ -44,8 +44,8 @@ function root () { return root } -function buildServerDirectory (internalServerNumber: number, directory: string) { - return join(root(), 'test' + internalServerNumber, directory) +function buildServerDirectory (server: { internalServerNumber: number }, directory: string) { + return join(root(), 'test' + server.internalServerNumber, directory) } async function testImage (url: string, imageName: string, imagePath: string, extension = '.jpg') { -- cgit v1.2.3