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