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
It always seems to be after the 10th test suite that runs so I'm assuming it has to do with the browser process. I'm using chromium.launchServer in a Jest setup script, setting that websocket endpoint to a variable in process.env, and then using const browser = chromium.connect({ wsEndpoint: process.env.WS_ENDPOINT }); in each test to get a reference to the one browser instance. I'm making sure to call page.close() after each test suite, and browser.close() in my Jest teardown script.
Is this pattern not using just one browser instance? Or would the issue be something else? I'm happy to just set process.setMaxListeners(Infinity); but I want to be sure that's safe to do.
Thanks!!
The text was updated successfully, but these errors were encountered:
I have the same issue. I use playwright-python, I wonder how to add process.setMaxListeners(Infinity) in my code? or it has been fixed in version 1.12? Thanks
I'm in the process of moving our tests from puppeteer to playwright, and when I run them now I notice a warning in the output:
It always seems to be after the 10th test suite that runs so I'm assuming it has to do with the browser process. I'm using
chromium.launchServer
in a Jest setup script, setting that websocket endpoint to a variable inprocess.env
, and then usingconst browser = chromium.connect({ wsEndpoint: process.env.WS_ENDPOINT });
in each test to get a reference to the onebrowser
instance. I'm making sure to callpage.close()
after each test suite, andbrowser.close()
in my Jest teardown script.Is this pattern not using just one browser instance? Or would the issue be something else? I'm happy to just set
process.setMaxListeners(Infinity);
but I want to be sure that's safe to do.Thanks!!
The text was updated successfully, but these errors were encountered: