diff --git a/test/version_solver_test.dart b/test/version_solver_test.dart index b9ec6a2e9..feb3977d4 100644 --- a/test/version_solver_test.dart +++ b/test/version_solver_test.dart @@ -1445,12 +1445,10 @@ void sdkConstraint() { await expectResolves( environment: {'FLUTTER_ROOT': p.join(d.sandbox, 'flutter')}, - error: equalsIgnoringWhitespace(''' - The current Dart SDK version is 3.1.2+3. + error: contains(''' +The current Dart SDK version is 3.1.2+3. - Because myapp requires SDK version >3.1.2+3, version solving - failed. - '''), +Because myapp requires SDK version >3.1.2+3, version solving failed.'''), ); });