Skip to content

Commit

Permalink
shared-workers: Don't warn when too many message listeners are added
Browse files Browse the repository at this point in the history
Each test process using the shared worker will add a listener. There
could be more than 10 processes using the worker concurrently. Disable
the standard listener limit since the warning it prints is irrelevant.
  • Loading branch information
novemberborn committed Oct 4, 2020
1 parent fd4da2f commit b71f396
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/plugin-support/shared-workers.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ function launchWorker({filename, initialData}) {
initialData
}
});
worker.setMaxListeners(0);

const launched = {
statePromises: {
available: waitForAvailable(worker),
Expand Down

0 comments on commit b71f396

Please sign in to comment.