Skip to content

Commit 111c709

Browse files
authored
Merge pull request #354 from mehmetf/patch-1
await runZoned Futures in the tests
2 parents 66e5e6f + d746038 commit 111c709

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/test/widget_svg_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void main() {
273273
});
274274

275275
testWidgets('SvgPicture.network', (WidgetTester tester) async {
276-
HttpOverrides.runZoned(() async {
276+
await HttpOverrides.runZoned(() async {
277277
when(mockResponse.statusCode).thenReturn(200);
278278
final GlobalKey key = GlobalKey();
279279
await tester.pumpWidget(
@@ -311,7 +311,7 @@ void main() {
311311
});
312312

313313
testWidgets('SvgPicture.network HTTP exception', (WidgetTester tester) async {
314-
HttpOverrides.runZoned(() async {
314+
await HttpOverrides.runZoned(() async {
315315
expect(() async {
316316
when(mockResponse.statusCode).thenReturn(400);
317317
await tester.pumpWidget(

0 commit comments

Comments
 (0)