Skip to content
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

Fix FileNotFoundException: ~.maestro/sessions #1843

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

bartekpacia
Copy link
Contributor

fix #1842

@@ -8,6 +8,10 @@ import kotlin.concurrent.write
class KeyValueStore(private val dbFile: File) {
private val lock = ReentrantReadWriteLock()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this class be called by multiple threads? Would that be a problem for creating new file.

Copy link
Contributor Author

@bartekpacia bartekpacia Jul 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory, yes and then that could be a problem, I think.

But in practice, right now, a KeyValueStore is effectively a singleton. It's only created here:

and SessionStore is a singleton

@bartekpacia bartekpacia merged commit d40b1cb into main Jul 29, 2024
4 checks passed
@bartekpacia bartekpacia deleted the fix/session_file_not_found_crash branch July 29, 2024 15:44
Copy link

Make sure to run ./maestro-ios-xctest-runner/build-maestro-ios-runner.sh with every swift change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to start maestro on latest CLI
3 participants