Skip to content

Commit a9cbdfe

Browse files
committed
Fix analysis errors
1 parent e59ecbf commit a9cbdfe

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

pkgs/http_profile/test/close_test.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void main() {
2828
group('requestData.close', () {
2929
test('no arguments', () async {
3030
expect(backingMap['requestEndTimestamp'], isNull);
31-
profile.requestData.close();
31+
await profile.requestData.close();
3232

3333
expect(
3434
backingMap['requestEndTimestamp'],
@@ -39,7 +39,7 @@ void main() {
3939

4040
test('with time', () async {
4141
expect(backingMap['requestEndTimestamp'], isNull);
42-
profile.requestData.close(DateTime.parse('2024-03-23'));
42+
await profile.requestData.close(DateTime.parse('2024-03-23'));
4343

4444
expect(
4545
backingMap['requestEndTimestamp'],
@@ -48,7 +48,7 @@ void main() {
4848
});
4949

5050
test('then write body', () async {
51-
profile.requestData.close();
51+
await profile.requestData.close();
5252

5353
expect(
5454
() => profile.requestData.bodySink.add([1, 2, 3]),
@@ -57,7 +57,7 @@ void main() {
5757
});
5858

5959
test('then mutate', () async {
60-
profile.requestData.close();
60+
await profile.requestData.close();
6161

6262
expect(
6363
() => profile.requestData.contentLength = 5,
@@ -75,7 +75,7 @@ void main() {
7575

7676
test('no arguments', () async {
7777
expect(responseData['endTime'], isNull);
78-
profile.responseData.close();
78+
await profile.responseData.close();
7979

8080
expect(
8181
responseData['endTime'],
@@ -86,7 +86,7 @@ void main() {
8686

8787
test('with time', () async {
8888
expect(responseData['endTime'], isNull);
89-
profile.responseData.close(DateTime.parse('2024-03-23'));
89+
await profile.responseData.close(DateTime.parse('2024-03-23'));
9090

9191
expect(
9292
responseData['endTime'],
@@ -95,7 +95,7 @@ void main() {
9595
});
9696

9797
test('then write body', () async {
98-
profile.responseData.close();
98+
await profile.responseData.close();
9999

100100
expect(
101101
() => profile.responseData.bodySink.add([1, 2, 3]),
@@ -104,7 +104,7 @@ void main() {
104104
});
105105

106106
test('then mutate', () async {
107-
profile.responseData.close();
107+
await profile.responseData.close();
108108

109109
expect(
110110
() => profile.responseData.contentLength = 5,

pkgs/http_profile/test/http_profile_response_data_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
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';
65
import 'dart:developer' show getHttpClientProfilingData;
76
import 'dart:io';
87

0 commit comments

Comments
 (0)