server: tests: enable tests with qBittorrent master branch

pull/115/head
Jesse Chan 3 years ago
parent f7c9eede56
commit 541b914002

@ -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

@ -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',
],
};

@ -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');

Loading…
Cancel
Save