Skip to content

Commit 6d6da84

Browse files
jensjohaCommit Queue
authored andcommitted
[analyzer] Fix analysis_context_collection_test on Windows
https://dart-review.googlesource.com/c/sdk/+/434802 (0677fca) introduced a few new tests that didn't work on Windows. Change-Id: I841cb479b6782a83d8472ee4c074ef2b3b51709a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/435820 Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Jens Johansen <[email protected]>
1 parent 3ef349c commit 6d6da84

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

pkg/analyzer/test/src/dart/analysis/analysis_context_collection_test.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ workspaces
10861086
var collection = AnalysisContextCollectionImpl(
10871087
resourceProvider: resourceProvider,
10881088
sdkPath: sdkRoot.path,
1089-
includedPaths: [pubWorkspace.workspaceRootPath],
1089+
includedPaths: [getFolder(pubWorkspace.workspaceRootPath).path],
10901090
);
10911091

10921092
// We expect only 1 context.
@@ -1128,9 +1128,9 @@ workspaces
11281128
resourceProvider: resourceProvider,
11291129
sdkPath: sdkRoot.path,
11301130
includedPaths: [
1131-
pubWorkspace.package1,
1132-
pubWorkspace.workspaceRootPath,
1133-
pubWorkspace.package2,
1131+
getFolder(pubWorkspace.package1).path,
1132+
getFolder(pubWorkspace.workspaceRootPath).path,
1133+
getFolder(pubWorkspace.package2).path,
11341134
],
11351135
);
11361136

@@ -1198,7 +1198,10 @@ workspaces
11981198
var collection = AnalysisContextCollectionImpl(
11991199
resourceProvider: resourceProvider,
12001200
sdkPath: sdkRoot.path,
1201-
includedPaths: [pubWorkspace.package1, pubWorkspace.package2],
1201+
includedPaths: [
1202+
getFolder(pubWorkspace.package1).path,
1203+
getFolder(pubWorkspace.package2).path,
1204+
],
12021205
);
12031206

12041207
// We expect only 1 context.

0 commit comments

Comments
 (0)