[flutter_tools] disable cache in devices test (#54389)

This commit is contained in:
Jonah Williams 2020-04-10 10:33:23 -07:00 committed by GitHub
parent 5adfd38dde
commit 0700be79e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');
}
}