Skip to content

Commit

Permalink
[analysis_server] Fix missing-drive-letter test on Windows
Browse files Browse the repository at this point in the history
My previous CL changed too much... This test specifically didn't want a valid absolute path on Windows, it wanted one without the drive letter.

Change-Id: If0812517e506f9960bca7ac99dd713be087b9ad9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/314020
Commit-Queue: Konstantin Shcheglov <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
  • Loading branch information
DanTup authored and Commit Queue committed Jul 16, 2023
1 parent 24f9c7c commit 760c719
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/analysis_server/test/lsp/server_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ class ServerTest extends AbstractLspAnalysisServerTest {
if (pathContext.style != package_path.Style.windows) {
return;
}
final missingDriveLetterFileUri = pathContext.toUri('/foo/bar.dart');
// This code deliberately does not use pathContext because we're testing a
// without a drive letter, but pathContext.toUri() would include one.
final missingDriveLetterFileUri = Uri.parse('file:///foo/bar.dart');
await initialize();
await expectLater(
getHover(missingDriveLetterFileUri, startOfDocPos),
Expand Down

0 comments on commit 760c719

Please sign in to comment.