Index: tests/isolate/timer_test.dart |
diff --git a/tests/isolate/timer_test.dart b/tests/isolate/timer_test.dart |
index 86f6753e92d840b951ffacc28c4bd37a1cd1fc71..aafa23de463b3ae142a16cf1527ffefb4b70c847 100644 |
--- a/tests/isolate/timer_test.dart |
+++ b/tests/isolate/timer_test.dart |
@@ -16,12 +16,12 @@ int timeout; |
int iteration; |
void timeoutHandler(Timer timer) { |
- int endTime = (new Date.now()).millisecondsSinceEpoch; |
+ int endTime = (new DateTime.now()).millisecondsSinceEpoch; |
expect(endTime - startTime, greaterThanOrEqualTo(timeout)); |
if (iteration < ITERATIONS) { |
iteration++; |
timeout = timeout - DECREASE; |
- startTime = (new Date.now()).millisecondsSinceEpoch; |
+ startTime = (new DateTime.now()).millisecondsSinceEpoch; |
new Timer(timeout, expectAsync1(timeoutHandler)); |
} |
} |
@@ -30,7 +30,7 @@ main() { |
test("timeout test", () { |
iteration = 0; |
timeout = STARTTIMEOUT; |
- startTime = (new Date.now()).millisecondsSinceEpoch; |
+ startTime = (new DateTime.now()).millisecondsSinceEpoch; |
new Timer(timeout, expectAsync1(timeoutHandler)); |
}); |
} |