]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/multiple-servers.ts
Faster ci using compiled ts files
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / multiple-servers.ts
index e80d69cf3f3b62ae791e18ffb11265f54f2ce00a..a8c8a889b11e8774f3be5322018fafe69c6ec557 100644 (file)
@@ -2,11 +2,11 @@
 
 import 'mocha'
 import * as chai from 'chai'
-import { join } from 'path'
 import * as request from 'supertest'
 import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
 import {
   addVideoChannel,
+  buildAbsoluteFixturePath,
   checkTmpIsEmpty,
   checkVideoFilesWereRemoved,
   cleanupTests,
@@ -1018,9 +1018,7 @@ describe('Test multiple servers', function () {
         .field('privacy', '1')
         .field('channelId', '1')
 
-      const filePath = join(__dirname, '..', '..', 'fixtures', 'video_short.webm')
-
-      await req.attach('videofile', filePath)
+      await req.attach('videofile', buildAbsoluteFixturePath('video_short.webm'))
                .expect(HttpStatusCode.OK_200)
 
       await waitJobs(servers)