Index: tests/isolate/timer_repeat_test.dart |
diff --git a/tests/isolate/timer_repeat_test.dart b/tests/isolate/timer_repeat_test.dart |
index d13e9884f5745e84026b6e12e556c958f4b5949e..48b962b208bab1703b873b17cddc0bd89e90a62c 100644 |
--- a/tests/isolate/timer_repeat_test.dart |
+++ b/tests/isolate/timer_repeat_test.dart |
@@ -15,10 +15,10 @@ int startTime; |
int iteration; |
void timeoutHandler(Timer timer) { |
- int endTime = (new Date.now()).millisecondsSinceEpoch; |
+ int endTime = (new DateTime.now()).millisecondsSinceEpoch; |
iteration++; |
if (iteration < ITERATIONS) { |
- startTime = (new Date.now()).millisecondsSinceEpoch; |
+ startTime = (new DateTime.now()).millisecondsSinceEpoch; |
} else { |
expect(iteration, ITERATIONS); |
timer.cancel(); |
@@ -28,7 +28,7 @@ void timeoutHandler(Timer timer) { |
main() { |
test("timer_repeat", () { |
iteration = 0; |
- startTime = new Date.now().millisecondsSinceEpoch; |
+ startTime = new DateTime.now().millisecondsSinceEpoch; |
timer = new Timer.repeating(TIMEOUT, |
expectAsync1(timeoutHandler, count: ITERATIONS)); |
}); |