[flutter_tools] disable cache in devices test (#54389)
This commit is contained in:
@@ -6,6 +6,7 @@ import 'dart:convert';
|
||||
|
||||
import 'package:file/file.dart';
|
||||
import 'package:args/command_runner.dart';
|
||||
import 'package:flutter_tools/src/cache.dart';
|
||||
import 'package:flutter_tools/src/device.dart';
|
||||
import 'package:flutter_tools/src/web/chrome.dart';
|
||||
import 'package:flutter_tools/src/commands/devices.dart';
|
||||
@@ -30,6 +31,7 @@ void main() {
|
||||
});
|
||||
|
||||
setUpAll(() {
|
||||
Cache.disableLocking();
|
||||
configDir ??= globals.fs.systemTempDirectory.createTempSync(
|
||||
'flutter_config_dir_test.',
|
||||
);
|
||||
@@ -90,4 +92,4 @@ class _DisabledChromeLauncher implements ChromeLauncher {
|
||||
@override
|
||||
Future<Chrome> launch(String url, {bool headless = false, int debugPort, bool skipCheck = false, Directory cacheDir})
|
||||
=> Future<Chrome>.error('Chrome disabled');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user