Skip to content

Fix Platform-Dependent URI Mock Failures in fileinstall Tests#514

Open
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:fileinstall-fix-uri-mocks
Open

Fix Platform-Dependent URI Mock Failures in fileinstall Tests#514
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:fileinstall-fix-uri-mocks

Conversation

@sahvx655-wq
Copy link
Copy Markdown

Fixes failures in ConfigInstallerTest and DirectoryWatcherTest caused by platform-dependent URI construction in mock expectations.

The tests previously constructed expected file URIs by manually concatenating strings (for example, prefixing paths with "file:"). This approach can produce URI formats that differ across operating systems and may not match the URIs generated by the implementation.

Replace manual URI construction with File.toURI() to ensure test expectations use the same platform-independent URI representation as the production code, eliminating OS-specific test failures.

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.

1 participant