diff --git a/packages/flutter_tools/test/general.shard/base/error_handling_file_system_test.dart b/packages/flutter_tools/test/general.shard/base/error_handling_file_system_test.dart index 17a4e6e3d5..47ab03f458 100644 --- a/packages/flutter_tools/test/general.shard/base/error_handling_file_system_test.dart +++ b/packages/flutter_tools/test/general.shard/base/error_handling_file_system_test.dart @@ -224,17 +224,6 @@ void main() { expect(identical(firstPath, fs.path), false); }); - testWithoutContext('Throws type error if Directory type is set to curentDirectory with LocalFileSystem', () { - final FileSystem fs = ErrorHandlingFileSystem( - delegate: LocalFileSystem.instance, - platform: const LocalPlatform(), - ); - final MockDirectory directory = MockDirectory(); - when(directory.path).thenReturn('path'); - - expect(() => fs.currentDirectory = directory, throwsA(isA())); - }); - group('toString() gives toString() of delegate', () { testWithoutContext('ErrorHandlingFileSystem', () { final MockFileSystem mockFileSystem = MockFileSystem();