You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Unable to run in parallel with Protractor 6 and shardTestFiles: true #5232
logger.info('Running '+scheduler.countActiveTasks()+' instances of WebDriver');
The await causes the library to wait for each task to complete before spinning up a new one. This prevents more than a single test from being executed in parallel. I found that this fixed the issue:
const maxConcurrentTasks = scheduler.maxConcurrentTasks();
const taskArray = [];
for (let i = 0; i < maxConcurrentTasks; ++i) {
taskArray.push(createNextTaskRunner());
}
await Promise.all(taskArray);
logger.info('Running ' + scheduler.countActiveTasks() + ' instances of WebDriver');
I do not believe this is an acceptable production solution, but I am not certain how to properly fix the bug. Let me know if you need more information or a more-complete minimal test case.
Activity
vsravuri commentedon May 7, 2019
Could be similar to #5145
vsravuri commentedon May 7, 2019
Both multiCapabilities & shardTestFiles doesn't work in Protractor 6.0.0
ben-yocum commentedon May 7, 2019
Yep, looks like the same problem. Do you think I should close this issue as a duplicate?
vsravuri commentedon May 7, 2019
I added follow up note on #5145
cnishina commentedon May 7, 2019
Duplicate #5145
Closing issue.