-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Karma times out when using Electron 9 and client.useIframe = false #47
Comments
Hmm, interesting. I'm heads down at the moment but should be able to look into this by EOD, if not sooner. Thanks for the reproduction repo so far! =) |
Sure thing, and thanks for the super quick reply! It's not particularly urgent on my end, but definitely let me know if you need any more info. |
Looking into this now |
Alright, had 1 distraction but so far I was able to upgrade to Electron@9 for our tests with only a It looks like I'm getting pulled away to another task at the moment but should continue soon after that hopefully |
Alright, got a little more time. Let's see if we can hammer this out |
I've successfully reproduced your error. Going to re-read the |
Hmmm, when I make Electron visible and open the
I'm going to see if that appeared in Electron@8 or not to confirm if it's a red herring or not |
Yep, that's definitely the issue/change. We get a CSP error in Electron@8 and 9 but no similar |
It looks like something in the |
Alright, so it looks like there have been changes to the Electron IPC to avoid passing references between contexts. I'm guessing the error is arising from Also that would explain why So the fix should be to update |
Yep, a hack in delete result.order.sort;
tc.complete({
order: result.order,
coverage: window.__coverage__
}) Going to search around for a bit for something more formal but we've got an answer and a hack-ish solution for now =) |
Interesting - thanks for digging into this! I'll take a closer look tomorrow and see if the hack works for me as well. |
About to submit a PR which you can then use in place of |
Damn, they wrote their library in a way where |
Alright, if you use the following in your
|
Aaaand PR opened =) karma-runner/karma-jasmine#272 Edit: Also uploaded the modified |
I can verify that the fix works for me. I added a kludgy workaround in our code for now (just doing the same function deletion in our custom reporter), but I'll keep an eye on that karma-jasmine PR. Thanks again for looking into this! |
Deciding to close this issue for now since it's been concluded that this is not caused by |
Alright, the PR has been landed and released on |
Awesome, thanks for the fix! |
Description
When switching from Electron 8 to 9, I noticed our Karma/Electron tests were now timing out despite the tests passing. It looks like something is keeping the Electron process alive even when running with
singleRun: true
andautoWatch: false
.Reproduction Steps
I've created a repo with a fairly minimal reproduction of the problem. I've been able to see the issue using Node 12.18.2 on both Ubuntu 18 and MacOS.
Clone the repo:
git clone https://github.com/dpwatrous/karma-electron-repro.git
npm install
npm run test-iframe
npm run test-no-iframe
The text was updated successfully, but these errors were encountered: