Index: pkg/unittest/lib/unittest.dart |
diff --git a/pkg/unittest/lib/unittest.dart b/pkg/unittest/lib/unittest.dart |
index efe6f8d40f7535b34e12fe33d791b47535a7ab53..ec792885b502ec49a5ac6046573a39f4018064a7 100644 |
--- a/pkg/unittest/lib/unittest.dart |
+++ b/pkg/unittest/lib/unittest.dart |
@@ -668,7 +668,7 @@ void _reportTestError(String msg, String trace) { |
* (as we do in unitttest_test.dart). |
*/ |
_defer(void callback()) { |
- (new Future.immediate(null)).then((_) => callback()); |
+ (new Future.value()).then((_) => callback()); |
} |
void rerunTests() { |