mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[flutter_tools] disable cache in devices test (#54389)
This commit is contained in:
parent
5adfd38dde
commit
0700be79e5
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user