Commit 0eaf884
Fix ConfigurationFileProvider file lock and GitCheckoutInformation type check
ConfigurationFileProvider: use a unique subdirectory per instance under
ApplicationData/config-runtime/{guid} to avoid Windows file-locking
collisions when multiple tests run in parallel writing the same
versions.yml/products.yml files. Original CreateTempSubdirectory gave
unique dirs; the fixed path broke parallel test isolation on Windows.
GitCheckoutInformation.Create: the guard `fileSystem is not FileSystem`
returned hardcoded test data for any ScopedFileSystem, including RealRead
wrapping a real FileSystem. RealRead is used in GitCheckoutInformationTests
which expects real git metadata. Change to check the type name for "Mock"
so only MockFileSystem-backed instances return test data.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent a8bc2f3 commit 0eaf884
2 files changed
Lines changed: 7 additions & 4 deletions
File tree
- src
- Elastic.Documentation.Configuration
- Elastic.Documentation
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | | - | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments