Skip to content

Commit 7b9ba6e

Browse files
authored
Merge pull request dart-archive/gcloud#139 from dart-lang/remove_nnbd_exclusion
remove a nnbd file exclusion
2 parents 1a8e76e + c417c8a commit 7b9ba6e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

pkgs/gcloud/test/db_all_e2e_test.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
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.
4-
// @dart=2.9
54

65
@Tags(['e2e'])
76
@Timeout(Duration(seconds: 120))
@@ -26,19 +25,18 @@ Future main() async {
2625
var now = DateTime.now().millisecondsSinceEpoch;
2726
var namespace = '${Platform.operatingSystem}$now';
2827

29-
datastore_impl.DatastoreImpl datastore;
30-
db.DatastoreDB datastoreDB;
31-
Client client;
28+
late datastore_impl.DatastoreImpl datastore;
29+
late db.DatastoreDB datastoreDB;
30+
Client? client;
3231

33-
await withAuthClient(scopes, (String project, httpClient) {
32+
await withAuthClient(scopes, (String project, httpClient) async {
3433
datastore = datastore_impl.DatastoreImpl(httpClient, project);
3534
datastoreDB = db.DatastoreDB(datastore);
3635
client = httpClient;
37-
return null;
3836
});
3937

4038
tearDownAll(() async {
41-
client.close();
39+
client?.close();
4240
});
4341

4442
group('datastore_test', () {

0 commit comments

Comments
 (0)