-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Bug]: The unit test offlineFirstTopicsRepository_toggle_followed_topics_logic_delegates_to_nia_preferences() failed #98
Comments
Hi, is this still an issue with the latest version? |
FWIW, on a Windows machine, I'm unable to run the whole test suite. Many unit tests fail while |
Unfortunately, the issue persists... |
Hello @SimonMarquis I am also experiencing this |
No, but you can ⭐ & +1 this issue: https://issuetracker.google.com/issues/203087070 |
@SimonMarquis unfortunately I can't check as I don't have a Windows anymore 😞 |
@Bwaim do you still reproduce this issue? If that is the case, you can close the issue. |
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
Windows environment
Running the unit test offlineFirstTopicsRepository_toggle_followed_topics_logic_delegates_to_nia_preferences() fails.
There is an exception thrown that is cached but the log of this exception causes crash because it's not mocked, the original exception is :
java.io.IOException: Unable to rename C:\xxxxx\Temp\junit2206256684596171052\user_preferences_test.pb.tmp.This likely means that there are multiple instances of DataStore for this file. Ensure that you are only creating a single instance of datastore for this file.
The stacktrace :
I think the problem is because the test was executed under a Windows environment and the rename failed on that platform (
SingleProcessDataStore.kt : 432
) :Relevant logcat output
Code of Conduct
The text was updated successfully, but these errors were encountered: