Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 2dc3f19

Browse files
committed
[package_info] Ensure async works in the integration_test app.
1 parent 8f66b2d commit 2dc3f19

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/package_info/example/test_driver/integration_test.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
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 'dart:async';
56
import 'dart:convert';
67
import 'dart:io';
7-
88
import 'package:flutter_driver/flutter_driver.dart';
99

1010
Future<void> main() async {
1111
final FlutterDriver driver = await FlutterDriver.connect();
12-
final String data = await driver.requestData(
13-
null,
14-
timeout: const Duration(minutes: 1),
15-
);
12+
final String data =
13+
await driver.requestData(null, timeout: const Duration(minutes: 1));
1614
await driver.close();
1715
final Map<String, dynamic> result = jsonDecode(data);
1816
exit(result['result'] == 'true' ? 0 : 1);

0 commit comments

Comments
 (0)