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
Should fail the test cases split to a browser that is disconnected #38 #43
Should fail the test cases split to a browser that is disconnected #38 #43
Conversation
Each time the browser unregister and re-register his shard id become different which causes round-robin to not give tests to this browser instance. The fix is to find available shard index (in our case from 0 - 3) and assign it to the new browser instance. For some reason the shard index first time is number and there are no issues in round-robin function but the second time (re-connect) it is string which reflects to no tests for this browser, because his index doesn't "answering" the needed condiditon. For example: 15 % 3 === '0' -> False. The fix is to do Number(a) === Number(b).
Testing in my production test suites |
Testing reportGeneral result
Steps 1: Prove the issue is still existing in latest
|
Hello @lanshunfang. I tested it with debugger keyword which was successful.
I was not able to reproduce this issue, what version of karma are you using? |
Hey guys, the last release of |
Fixing this would be HUGE. This project is such a time saver. @nvladimirovi in your opinion what are the things still needed to do on this? The test count is inaccurate but is that it? |
Hi @lucasklaassen, related with our observations, yes, the test count is the main problem. |
@joeljeske Could we merge this PR? |
This is a hug fix! I appreciate this time spend to get this right. I agree it isn’t perfect but it’s a step in the right direction. |
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix Should fail the test cases split to a browser that is disconnected #38
What is the current behavior? (You can also link to an open issue here)
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No breaking changes, no user changes needed.
Other information: