File tree 1 file changed +2
-2
lines changed
packages/flutter_tools/test/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,14 @@ void testUsingContext(
66
66
skip, // should default to `false`, but https://github.com/dart-lang/test/issues/545 doesn't allow this
67
67
}) {
68
68
if (overrides[FileSystem ] != null && overrides[ProcessManager ] == null ) {
69
- throw StateError (
69
+ fail (
70
70
'If you override the FileSystem context you must also provide a ProcessManager, '
71
71
'otherwise the processes you launch will not be dealing with the same file system '
72
72
'that you are dealing with in your test.' ,
73
73
);
74
74
}
75
75
if (overrides.containsKey (ProcessUtils )) {
76
- throw StateError ('Do not inject ProcessUtils for testing, use ProcessManager instead.' );
76
+ fail ('Do not inject ProcessUtils for testing, use ProcessManager instead.' );
77
77
}
78
78
79
79
// Ensure we don't rely on the default [Config] constructor which will
You can’t perform that action at this time.
0 commit comments