[flutter_tools] stop unit test from writing real file (#70511)
This commit is contained in:
@@ -57,7 +57,7 @@ void main() {
|
|||||||
Cache.flutterRoot = '../..';
|
Cache.flutterRoot = '../..';
|
||||||
when(sdk.licensesAvailable).thenReturn(true);
|
when(sdk.licensesAvailable).thenReturn(true);
|
||||||
final FlutterProject project = FlutterProject.current();
|
final FlutterProject project = FlutterProject.current();
|
||||||
globals.fs.file(project.android.hostAppGradleRoot.childFile(
|
fs.file(project.android.hostAppGradleRoot.childFile(
|
||||||
globals.platform.isWindows ? 'gradlew.bat' : 'gradlew',
|
globals.platform.isWindows ? 'gradlew.bat' : 'gradlew',
|
||||||
).path).createSync(recursive: true);
|
).path).createSync(recursive: true);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user