Index: pkg/scheduled_test/test/utils.dart |
diff --git a/pkg/scheduled_test/test/utils.dart b/pkg/scheduled_test/test/utils.dart |
index bff8a195a4ce2fc7e1adc8a68849cea1a0df6785..a52b1378bbd76de97f16676fefe3dd50f56443a7 100644 |
--- a/pkg/scheduled_test/test/utils.dart |
+++ b/pkg/scheduled_test/test/utils.dart |
@@ -26,7 +26,7 @@ export 'package:scheduled_test/src/utils.dart'; |
Future timeout(Future input, int milliseconds, onTimeout()) { |
var completer = new Completer(); |
var timer = new Timer(new Duration(milliseconds: milliseconds), () { |
- chainToCompleter(new Future.of(onTimeout), completer); |
+ chainToCompleter(new Future.sync(onTimeout), completer); |
}); |
input.then((value) { |
if (completer.isCompleted) return; |