You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonq/lsp/util/WorkspaceFolderUtilTest.kt
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ class WorkspaceFolderUtilTest {
70
70
every { toUri() } returns uri
71
71
}
72
72
return mockk<VirtualFile> {
73
-
every { url } returns uri.toString()
73
+
every { url } returns normalizeFileUri(uri.toString())
74
74
every { getName() } returns name
75
75
every { toNioPath() } returns path
76
76
every { isDirectory } returns false
@@ -79,4 +79,18 @@ class WorkspaceFolderUtilTest {
79
79
}
80
80
}
81
81
}
82
+
83
+
// for windows unit tests
84
+
privatefunnormalizeFileUri(uri:String): String {
85
+
if (!System.getProperty("os.name").lowercase().contains("windows")) {
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonq/lsp/workspace/WorkspaceServiceHandlerTest.kt
+27-13Lines changed: 27 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ class WorkspaceServiceHandlerTest {
0 commit comments