Unverified Commit 0700be79 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

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

parent 5adfd38d
......@@ -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');
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment