diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index 6f6382c5..9d114d86 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -25,8 +25,9 @@ jobs: with: node-version: ${{ matrix.node }} + - run: sudo add-apt-repository -y ppa:qbittorrent-team/qbittorrent-unstable - run: sudo add-apt-repository -y ppa:transmissionbt/ppa - - run: sudo apt-get install -y rtorrent transmission-daemon + - run: sudo apt-get install -y rtorrent qbittorrent-nox transmission-daemon - run: npm ci --no-optional - run: npm run build diff --git a/jest.config.js b/jest.config.js index 80becbce..ef87c402 100644 --- a/jest.config.js +++ b/jest.config.js @@ -5,8 +5,7 @@ module.exports = { projects: [ '/server/.jest/auth.config.js', '/server/.jest/rtorrent.config.js', - // TODO: qBittorrent tests are disabled at the moment. - // '/server/.jest/qbittorrent.config.js', + '/server/.jest/qbittorrent.config.js', '/server/.jest/transmission.config.js', ], }; diff --git a/server/.jest/qbittorrent.setup.js b/server/.jest/qbittorrent.setup.js index 078ca39c..6a173691 100644 --- a/server/.jest/qbittorrent.setup.js +++ b/server/.jest/qbittorrent.setup.js @@ -21,6 +21,7 @@ const qBittorrentDaemon = spawn( process.argv = ['node', 'flood']; process.argv.push('--rundir', temporaryRuntimeDirectory); +process.argv.push('--allowedpath', temporaryRuntimeDirectory); process.argv.push('--auth', 'none'); process.argv.push('--qburl', `http://127.0.0.1:${qbtPort}`); process.argv.push('--qbuser', 'admin');