mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
remote_runner: Avoid duplication in task list
This commit is contained in:
parent
59be8d5c05
commit
1f3a831cc3
1 changed files with 27 additions and 31 deletions
|
@ -128,40 +128,36 @@ const sauceTestWorker = async.queue((testSettings, callback) => {
|
|||
});
|
||||
}, 6); // run 6 tests in parrallel
|
||||
|
||||
if (!isAdminRunner) {
|
||||
sauceTestWorker.push({
|
||||
platform: 'Windows 10',
|
||||
browserName: 'firefox',
|
||||
version: '84.0',
|
||||
});
|
||||
sauceTestWorker.push({
|
||||
platform: 'Windows 7',
|
||||
browserName: 'chrome',
|
||||
version: '55.0',
|
||||
args: ['--use-fake-device-for-media-stream'],
|
||||
});
|
||||
sauceTestWorker.push({
|
||||
[
|
||||
{
|
||||
platform: 'OS X 10.15',
|
||||
browserName: 'safari',
|
||||
version: '13.1',
|
||||
});
|
||||
sauceTestWorker.push({
|
||||
platform: 'Windows 10',
|
||||
browserName: 'microsoftedge',
|
||||
version: '83.0',
|
||||
});
|
||||
sauceTestWorker.push({
|
||||
platform: 'Windows 7',
|
||||
browserName: 'firefox',
|
||||
version: '78.0',
|
||||
});
|
||||
} else {
|
||||
sauceTestWorker.push({
|
||||
platform: 'OS X 10.15',
|
||||
browserName: 'safari',
|
||||
version: '13.1',
|
||||
});
|
||||
}
|
||||
},
|
||||
...(isAdminRunner ? [] : [
|
||||
{
|
||||
platform: 'Windows 10',
|
||||
browserName: 'firefox',
|
||||
version: '84.0',
|
||||
},
|
||||
{
|
||||
platform: 'Windows 7',
|
||||
browserName: 'chrome',
|
||||
version: '55.0',
|
||||
args: ['--use-fake-device-for-media-stream'],
|
||||
},
|
||||
{
|
||||
platform: 'Windows 10',
|
||||
browserName: 'microsoftedge',
|
||||
version: '83.0',
|
||||
},
|
||||
{
|
||||
platform: 'Windows 7',
|
||||
browserName: 'firefox',
|
||||
version: '78.0',
|
||||
},
|
||||
]),
|
||||
].forEach((task) => sauceTestWorker.push(task));
|
||||
|
||||
sauceTestWorker.drain(() => {
|
||||
process.exit(allTestsPassed ? 0 : 1);
|
||||
|
|
Loading…
Reference in a new issue