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
3.18-2016c appears to make testing difficult (Android) #483
Comments
Thanks for the message. I am going to investigate it within the next week. Do you say that setting the prefetch-parameter in the initialization-method to "true" is okay, but with value "false" fails? |
With the value set to true, the tests don't run at all: they just seem to hang with their corresponding spinners spinning away. I did try pausing execution, and it looked like it was cycling between three different lines in the time4j library. Looked like it was maybe waiting for initialization, but I unfortunately didn't make notes of the lines in question. With the value set to false, the tests fail quickly as described. |
Have got it so far. The problem with setting the prefetch-parameter to "true" was a deadlock-situation. The commits done now have solved the problem on my local system in emulator test. About the other problem with Really sorry for inconveniences but I think the next release solving the problems is not far away. |
Thanks for the quick response! no rush on my part though: the previous working is working fine for my use case. I'm testing via robolectric, so the actual ApplicationStarter.initialize(this, false); line in my application class is where the initialization takes place. In that case, a fuller stack trace looks like this:
That particular line in my test case is:
Though as you say, it's possible that your other fixes have already fixed this issue. Thanks again! |
I have just now released Tim4A v3.19-2016c. Originally I wanted to wait until TZDB-version 2016d, but that is still not available. Please be so kind to give a short feedback if your problem is solved with newest version (I think so). |
Meanwhile even Time4A-v3.19-2016d has been released. I have myself not observed any problems. The stacktrace you sent was very informative, and especially the last commit referencing this issue addresses the problem described by the stacktrace. |
Following up that I can confirm this fixed also. Thanks! |
Nice to hear your feedback. I appreciate it very much. |
I'm not entirely sure what the reasons are behind this, but I've not been able to get Android tests involving time4j working with 3.18-2016c. The test spinners just sit there: my guess is it's getting confused by the initialization taking place on a different thread?
Flipping the second parameter of ApplicationStarter.initialize to false causes tests that reference time4j classes to fail with stack traces beginning:
Downgrading to 3.17-2016b fixes the problem completely.
The text was updated successfully, but these errors were encountered: