Index: tests/isolate/timer_cancel2_test.dart |
diff --git a/tests/isolate/timer_cancel2_test.dart b/tests/isolate/timer_cancel2_test.dart |
index a7ea99760c9f5e2dd9f347293e34f237eaa8cd7b..16768afda08d0660e4b84874e06a51065328773c 100644 |
--- a/tests/isolate/timer_cancel2_test.dart |
+++ b/tests/isolate/timer_cancel2_test.dart |
@@ -16,6 +16,7 @@ main() { |
cancelTimer.cancel(); |
} |
- cancelTimer = new Timer.repeating(1, expectAsync1(cancelHandler)); |
+ cancelTimer = new Timer.repeating(const Duration(milliseconds: 1), |
+ expectAsync1(cancelHandler)); |
}); |
} |