Skip to content

Fix tests failure on Windows due to incorrect path#508

Merged
shruti0085 merged 3 commits intomainfrom
shruti0085/fixFlakyTest
Aug 27, 2025
Merged

Fix tests failure on Windows due to incorrect path#508
shruti0085 merged 3 commits intomainfrom
shruti0085/fixFlakyTest

Conversation

@shruti0085
Copy link
Contributor

@shruti0085 shruti0085 commented Aug 26, 2025

Description of changes:
Fixes test failures when run locally on Windows due to incorrect unix hardcoded path. Would throw the error QLspConnectionProviderTest.testConstructorInitializesCorrectly:120 expected: <true> but was: <false>

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


@Test
void testConstructorInitializesCorrectly() throws IOException {
String testDir = Paths.get("test", "dir").toString();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can also get a real temp dir with the @TempDir injection annotation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@shruti0085 shruti0085 merged commit 0039d6a into main Aug 27, 2025
3 checks passed
@shruti0085 shruti0085 deleted the shruti0085/fixFlakyTest branch August 27, 2025 17:49
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.

3 participants