Index: pkg/scheduled_test/lib/src/task.dart |
diff --git a/pkg/scheduled_test/lib/src/task.dart b/pkg/scheduled_test/lib/src/task.dart |
index aabdbbaea7e830a5b8bc0894bba81b464e6da5f2..e77f531a678d8056200ed6bbee31ad03ba1866ea 100644 |
--- a/pkg/scheduled_test/lib/src/task.dart |
+++ b/pkg/scheduled_test/lib/src/task.dart |
@@ -79,7 +79,7 @@ class Task { |
} |
_state = TaskState.RUNNING; |
- var future = new Future.immediate(null).then((_) => fn()) |
+ var future = new Future.value().then((_) => fn()) |
.whenComplete(() { |
if (_childGroup == null || _childGroup.completed) return; |
return _childGroup.future; |