mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
server: tests: enable tests with qBittorrent master branch
This commit is contained in:
3
.github/workflows/test-backend.yml
vendored
3
.github/workflows/test-backend.yml
vendored
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user