Index: packages/async/test/restartable_timer_test.dart |
diff --git a/packages/async/test/restartable_timer_test.dart b/packages/async/test/restartable_timer_test.dart |
index 6732b813c7f400c1d7c38b55456a4c3c0b80288c..4f59f62c16e3df9294eaebea03dd7e66981f9c7a 100644 |
--- a/packages/async/test/restartable_timer_test.dart |
+++ b/packages/async/test/restartable_timer_test.dart |
@@ -2,8 +2,6 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-import 'dart:async'; |
- |
import 'package:async/async.dart'; |
import 'package:fake_async/fake_async.dart'; |
import 'package:test/test.dart'; |
@@ -12,7 +10,7 @@ main() { |
test("runs the callback once the duration has elapsed", () { |
new FakeAsync().run((async) { |
var fired = false; |
- var timer = new RestartableTimer(new Duration(seconds: 5), () { |
+ new RestartableTimer(new Duration(seconds: 5), () { |
fired = true; |
}); |
@@ -101,9 +99,8 @@ main() { |
test("only runs the callback once if the timer isn't reset", () { |
new FakeAsync().run((async) { |
- var timer = new RestartableTimer( |
- new Duration(seconds: 5), |
- expectAsync(() {}, count: 1)); |
+ new RestartableTimer( |
+ new Duration(seconds: 5), expectAsync0(() {}, count: 1)); |
async.elapse(new Duration(seconds: 10)); |
}); |
}); |