]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix tests
authorChocobozzz <me@florianbigard.com>
Mon, 27 Mar 2023 06:43:50 +0000 (08:43 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 27 Mar 2023 06:43:50 +0000 (08:43 +0200)
scripts/ci.sh
server/tests/plugins/filter-hooks.ts

index 8fdbe8f26ad1c89cf31ffc11f599a74e6ed5977e..8b984093cf84eeab4c57d1987727b8e8ae48b6d7 100755 (executable)
@@ -56,6 +56,10 @@ elif [ "$1" = "client" ]; then
 
     MOCHA_PARALLEL=true runTest "$1" $((2*$speedFactor)) $feedsFiles $helperFiles $miscFiles $pluginFiles $libFiles
 elif [ "$1" = "cli-plugin" ]; then
+    # Simulate HTML
+    mkdir -p "./client/dist/en-US/"
+    cp "./client/src/index.html" "./client/dist/en-US/index.html"
+
     npm run build:server
     npm run setup:cli
 
index 43749b0b557110f0e80394dd04d87973c8fc5f34..a02a53c5049afafc91540bd290e5d2861e3cce71 100644 (file)
@@ -32,7 +32,7 @@ describe('Test plugin filter hooks', function () {
   let videoPlaylistUUID: string
 
   before(async function () {
-    this.timeout(60000)
+    this.timeout(120000)
 
     servers = await createMultipleServers(2)
     await setAccessTokensToServers(servers)