Unverified Commit db9ad60b authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Deflake web_fs_test.dart in flutter_tools (#41952)

parent 6048b62e
......@@ -61,7 +61,6 @@ void main() {
)).thenAnswer((Invocation invocation) async {
final String workingDirectory = invocation.namedArguments[#workingDirectory];
fs.file(fs.path.join(workingDirectory, '.packages')).createSync(recursive: true);
fs.file(fs.path.join(workingDirectory, 'pubspec.yaml')).createSync();
return 0;
});
when(mockBuildDaemonClient.buildResults).thenAnswer((Invocation _) {
......@@ -81,6 +80,9 @@ void main() {
when(mockBuildDaemonCreator.assetServerPort(any)).thenReturn(4321);
testbed = Testbed(
setup: () {
fs.file(fs.path.join('packages', 'flutter_tools', 'pubspec.yaml'))
..createSync(recursive: true)
..setLastModifiedSync(DateTime(1991, 08, 23));
// Create an empty .packages file so we can read it when we check for
// plugins on WebFs.start()
fs.file('.packages').createSync();
......
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