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.
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.
The text was updated successfully, but these errors were encountered:
Bug report
Configuration file:
This configuration will fail to execute two tests in parallel. I have tracked down the bug in the Protractor source code.
The problem is in
launcher.ts
.protractor/lib/launcher.ts
Lines 247 to 251 in 4f74a4e
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: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.
The text was updated successfully, but these errors were encountered: