-
-
Notifications
You must be signed in to change notification settings - Fork 9
fix: initialize drives with root directory #847
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug where drives in the mock file system were not properly initialized with their root directory containers, causing issues when trying to enumerate files on newly created drives. The fix ensures that when a drive is created, its corresponding root directory container is also created in the storage system.
- Initializes the main drive with a root directory container during storage construction
- Updates the
GetOrAddDrive
method to create root directory containers for new drives - Adds a test to verify that drives can be enumerated without errors
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
Tests/Testably.Abstractions.Testing.Tests/MockFileSystemTests.cs |
Adds test to verify drive enumeration works correctly with root directories |
Source/Testably.Abstractions.Testing/Storage/InMemoryStorage.cs |
Initializes main drive with root container and ensures new drives get root containers |
Test Results 37 files ± 0 37 suites ±0 21m 5s ⏱️ +17s For more details on these failures, see this check. Results for commit a8653aa. ± Comparison against base commit c6a2782. This pull request removes 36185 and adds 36186 tests. Note that renamed tests count towards both.
This pull request removes 1784 skipped tests and adds 1784 skipped tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
9a99ea4
to
dbe1807
Compare
|
This is addressed in release v4.3.3. |
This PR fixes a bug where drives in the mock file system were not properly initialized with their root directory containers, causing issues when trying to enumerate files on newly created drives. The fix ensures that when a drive is created, its corresponding root directory container is also created in the storage system.
Key changes:
GetOrAddDrive
method to create root directory containers for new drives