Skip to content

Commit 0700be7

Browse files
[flutter_tools] disable cache in devices test (flutter#54389)
1 parent 5adfd38 commit 0700be7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/flutter_tools/test/commands.shard/permeable/devices_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import 'dart:convert';
66

77
import 'package:file/file.dart';
88
import 'package:args/command_runner.dart';
9+
import 'package:flutter_tools/src/cache.dart';
910
import 'package:flutter_tools/src/device.dart';
1011
import 'package:flutter_tools/src/web/chrome.dart';
1112
import 'package:flutter_tools/src/commands/devices.dart';
@@ -30,6 +31,7 @@ void main() {
3031
});
3132

3233
setUpAll(() {
34+
Cache.disableLocking();
3335
configDir ??= globals.fs.systemTempDirectory.createTempSync(
3436
'flutter_config_dir_test.',
3537
);
@@ -90,4 +92,4 @@ class _DisabledChromeLauncher implements ChromeLauncher {
9092
@override
9193
Future<Chrome> launch(String url, {bool headless = false, int debugPort, bool skipCheck = false, Directory cacheDir})
9294
=> Future<Chrome>.error('Chrome disabled');
93-
}
95+
}

0 commit comments

Comments
 (0)