Skip to content

Commit 4d7d290

Browse files
natebiggsCommit Queue
authored andcommitted
Update async_scope_capture_test to include asyncStart/asyncEnd.
Change-Id: Ibbf93373b594e2fc3e5909747d586c062376e6c0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/400760 Auto-Submit: Nate Biggs <[email protected]> Reviewed-by: Nicholas Shahan <[email protected]> Commit-Queue: Nate Biggs <[email protected]>
1 parent b5ad858 commit 4d7d290

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/web/async_scope_capture_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
import 'package:expect/async_helper.dart';
6+
57
class Foo {
68
bool disposed = false;
79

@@ -12,6 +14,7 @@ class Foo {
1214
}
1315

1416
Future<void> main() async {
17+
asyncStart();
1518
List<Function> callbacks = [];
1619
for (final x in [1, 2]) {
1720
final Foo foo = Foo();
@@ -24,4 +27,5 @@ Future<void> main() async {
2427
for (final callback in callbacks) {
2528
callback();
2629
}
30+
asyncEnd();
2731
}

0 commit comments

Comments
 (0)