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: improve cache invalidation in MockDirectoryInfo #862

Merged
merged 2 commits into from
Jul 19, 2022

Commits on Jul 11, 2022

  1. Better cache invalidation in MockDirectoryInfo

    When invoking the `Create()` and `Delete()` methods on
    `MockDirectoryInfo`, the `Exists` property should intrinsically invoke
    `Refresh()` the next time it is called. This is necessary to prevent
    returning stale state about the directory after those operations.
    
    Additional test cases have been added for `MoveTo()` as well, to ensure
    it also not returning stale state.
    
    For context, this change was motivated by PR TestableIO#828 where similar issues
    were solved in `MockFileInfo`.
    rcdailey committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    18d37a8 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. Configuration menu
    Copy the full SHA
    b071af8 View commit details
    Browse the repository at this point in the history