make test flexible across sdks
diff --git a/pkgs/test/test/runner/runner_test.dart b/pkgs/test/test/runner/runner_test.dart
index 636baf1..8f8711c 100644
--- a/pkgs/test/test/runner/runner_test.dart
+++ b/pkgs/test/test/runner/runner_test.dart
@@ -262,13 +262,19 @@
       await d.file('test.dart', 'int main = 0;').create();
       var test = await runTest(['test.dart']);
 
+      expect(test.stdout, emitsThrough(contains('-1: loading test.dart [E]')));
       expect(
           test.stdout,
-          containsInOrder([
-            '-1: loading test.dart [E]',
-            "A value of type 'int' can't be returned from a function "
-                "with return type 'Function'",
-          ]));
+          emitsThrough(anyOf([
+            contains(
+              "A value of type 'int' can't be assigned to a variable of type "
+              "'Function'",
+            ),
+            contains(
+              "A value of type 'int' can't be returned from a function with "
+              "return type 'Function'",
+            ),
+          ])));
 
       await test.shouldExit(1);
     });