[flutter_tools] stop unit test from writing real file (#70511)

This commit is contained in:
Jonah Williams
2020-11-13 21:51:04 -08:00
committed by GitHub
parent 87746c7674
commit 836efaecf0

View File

@@ -57,7 +57,7 @@ void main() {
Cache.flutterRoot = '../..';
when(sdk.licensesAvailable).thenReturn(true);
final FlutterProject project = FlutterProject.current();
globals.fs.file(project.android.hostAppGradleRoot.childFile(
fs.file(project.android.hostAppGradleRoot.childFile(
globals.platform.isWindows ? 'gradlew.bat' : 'gradlew',
).path).createSync(recursive: true);
});