Skip to content

Commit b71f396

Browse files
committed
shared-workers: Don't warn when too many message listeners are added
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.
1 parent fd4da2f commit b71f396

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/plugin-support/shared-workers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ function launchWorker({filename, initialData}) {
3434
initialData
3535
}
3636
});
37+
worker.setMaxListeners(0);
38+
3739
const launched = {
3840
statePromises: {
3941
available: waitForAvailable(worker),

0 commit comments

Comments
 (0)