Skip to content

Commit 6d725e2

Browse files
srawlinsCommit Queue
authored andcommitted
linter: convertPath in test
Fixes #61317 Change-Id: Id7a41c2118c77119a8444328f20e5490ddaf0ae9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/445285 Reviewed-by: Konstantin Shcheglov <[email protected]> Auto-Submit: Samuel Rawlins <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 0f60dc8 commit 6d725e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/linter/test/formatter_test.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import 'package:analyzer/diagnostic/diagnostic.dart';
66
import 'package:analyzer/file_system/physical_file_system.dart';
77
import 'package:analyzer/source/file_source.dart';
8+
import 'package:analyzer_testing/utilities/extensions/resource_provider.dart';
89
import 'package:test/test.dart';
910
import 'package:test_descriptor/test_descriptor.dart' as d;
1011

@@ -33,7 +34,9 @@ var y = 22;
3334
var z = 33;
3435
'''),
3536
]).create();
36-
sourcePath = '${d.sandbox}/project/foo.dart';
37+
sourcePath = PhysicalResourceProvider.INSTANCE.convertPath(
38+
'${d.sandbox}/project/foo.dart',
39+
);
3740
var file = PhysicalResourceProvider.INSTANCE.getFile(sourcePath);
3841
var source = FileSource(file);
3942

0 commit comments

Comments
 (0)