Skip to content

Commit

Permalink
server: tests: enable tests with qBittorrent master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed Dec 5, 2020
1 parent f7c9eed commit 541b914
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ module.exports = {
projects: [
'<rootDir>/server/.jest/auth.config.js',
'<rootDir>/server/.jest/rtorrent.config.js',
// TODO: qBittorrent tests are disabled at the moment.
// '<rootDir>/server/.jest/qbittorrent.config.js',
'<rootDir>/server/.jest/qbittorrent.config.js',
'<rootDir>/server/.jest/transmission.config.js',
],
};
1 change: 1 addition & 0 deletions server/.jest/qbittorrent.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 541b914

Please sign in to comment.