diff --git a/test/options_test.dart b/test/options_test.dart index ecef16c69c..22b34e8127 100644 --- a/test/options_test.dart +++ b/test/options_test.dart @@ -632,7 +632,7 @@ class Foo {} throwsA(isA().having( (e) => e.toString(), 'toString', - contains('Could not find an option named "nonexistent".'), + contains('Could not find an option named'), )), ); }