]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix tests
authorChocobozzz <me@florianbigard.com>
Fri, 6 Nov 2020 10:22:12 +0000 (11:22 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 9 Nov 2020 14:33:04 +0000 (15:33 +0100)
scripts/ci.sh
server/models/video/video.ts

index e29b07ad769ee7f0bdeef7a6fb5e6ea162b8f8d5..238eba371264d2c9fc1b0cc808167abcbf6f25b9 100755 (executable)
@@ -60,7 +60,7 @@ elif [ "$1" = "api-2" ]; then
     usersFiles=$(findTestFiles server/tests/api/users)
     liveFiles=$(findTestFiles server/tests/api/live)
 
-    MOCHA_PARALLEL=true runTest 2 $serverFiles $usersFiles liveFiles
+    MOCHA_PARALLEL=true runTest 2 $serverFiles $usersFiles $liveFiles
 elif [ "$1" = "api-3" ]; then
     npm run build:server
 
index 8e71f8c32336ed4ee9c67cbe4c5873102c6bfd4b..60f295056d1093edc93764c4aabba124c421767e 100644 (file)
@@ -964,7 +964,7 @@ export class VideoModel extends Model<VideoModel> {
             }
           ]
         },
-        VideoLiveModel,
+        VideoLiveModel.unscoped(),
         VideoFileModel,
         TagModel
       ]