File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
- // @dart=2.9
5
4
6
5
@Tags (['e2e' ])
7
6
@Timeout (Duration (seconds: 120 ))
@@ -26,19 +25,18 @@ Future main() async {
26
25
var now = DateTime .now ().millisecondsSinceEpoch;
27
26
var namespace = '${Platform .operatingSystem }$now ' ;
28
27
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;
32
31
33
- await withAuthClient (scopes, (String project, httpClient) {
32
+ await withAuthClient (scopes, (String project, httpClient) async {
34
33
datastore = datastore_impl.DatastoreImpl (httpClient, project);
35
34
datastoreDB = db.DatastoreDB (datastore);
36
35
client = httpClient;
37
- return null ;
38
36
});
39
37
40
38
tearDownAll (() async {
41
- client.close ();
39
+ client? .close ();
42
40
});
43
41
44
42
group ('datastore_test' , () {
You can’t perform that action at this time.
0 commit comments