Skip to content

Commit 468f321

Browse files
committed
Fix hanging FakeAsync test.
1 parent fedce4f commit 468f321

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### 0.21.0+2
2+
* Fix hanging `FakeAsync` unit test.
3+
14
#### 0.21.0+1
25
* Replace `equalsTester` dependency on `unittest` with finer-grained
36
dependency on `matcher`.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: quiver
2-
version: 0.21.0+1
2+
version: 0.21.0+2
33
authors:
44
- Justin Fagnani <[email protected]>
55
- Yegor Jbanov <[email protected]>

test/testing/async/fake_async_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ main() {
3333

3434
test('should elapse time without calling timers', () {
3535
var timerCalled = false;
36-
new Timer(elapseBy ~/ 2, () => timerCalled = true);
36+
var timer = new Timer(elapseBy ~/ 2, () => timerCalled = true);
3737
new FakeAsync().elapseBlocking(elapseBy);
3838
expect(timerCalled, isFalse);
39+
timer.cancel();
3940
});
4041

4142
test('should elapse time by the specified amount', () {

0 commit comments

Comments
 (0)