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
Await pending directory change in filebrowser model. #5224
Await pending directory change in filebrowser model. #5224
Conversation
@timkpaine For posterity, can you comment on whether this fixes the issue? I am not completely convinced that there is no way to generate a race condition after this fix, since there is some subtle logic involving scheduling auto-refreshes of the file browser model (which are not awaited). However, I think this should at least address one class of race condition. |
@ian-r-rose sure, this seems to fix the particular issue of when you specify a default_url pointing to something like |
@ian-r-rose this should also resolve the race condition of |
I think I'm trying to construct a test that will catch this, but it's fiddly stuff. |
(a)waiting for Godot... |
ff9511e
to
33b129d
Compare
Okay, this now has a kind-of-confusing test for the race condition. |
Thanks! |
@meeseeksdev, backport to 0.34.x |
* Await pending directory change in filebrowser model. * Add test for slow initial fetch of filebrowser model.
Possible fix for #4009.