@@ -28,7 +28,7 @@ void main() {
28
28
group ('requestData.close' , () {
29
29
test ('no arguments' , () async {
30
30
expect (backingMap['requestEndTimestamp' ], isNull);
31
- profile.requestData.close ();
31
+ await profile.requestData.close ();
32
32
33
33
expect (
34
34
backingMap['requestEndTimestamp' ],
@@ -39,7 +39,7 @@ void main() {
39
39
40
40
test ('with time' , () async {
41
41
expect (backingMap['requestEndTimestamp' ], isNull);
42
- profile.requestData.close (DateTime .parse ('2024-03-23' ));
42
+ await profile.requestData.close (DateTime .parse ('2024-03-23' ));
43
43
44
44
expect (
45
45
backingMap['requestEndTimestamp' ],
@@ -48,7 +48,7 @@ void main() {
48
48
});
49
49
50
50
test ('then write body' , () async {
51
- profile.requestData.close ();
51
+ await profile.requestData.close ();
52
52
53
53
expect (
54
54
() => profile.requestData.bodySink.add ([1 , 2 , 3 ]),
@@ -57,7 +57,7 @@ void main() {
57
57
});
58
58
59
59
test ('then mutate' , () async {
60
- profile.requestData.close ();
60
+ await profile.requestData.close ();
61
61
62
62
expect (
63
63
() => profile.requestData.contentLength = 5 ,
@@ -75,7 +75,7 @@ void main() {
75
75
76
76
test ('no arguments' , () async {
77
77
expect (responseData['endTime' ], isNull);
78
- profile.responseData.close ();
78
+ await profile.responseData.close ();
79
79
80
80
expect (
81
81
responseData['endTime' ],
@@ -86,7 +86,7 @@ void main() {
86
86
87
87
test ('with time' , () async {
88
88
expect (responseData['endTime' ], isNull);
89
- profile.responseData.close (DateTime .parse ('2024-03-23' ));
89
+ await profile.responseData.close (DateTime .parse ('2024-03-23' ));
90
90
91
91
expect (
92
92
responseData['endTime' ],
@@ -95,7 +95,7 @@ void main() {
95
95
});
96
96
97
97
test ('then write body' , () async {
98
- profile.responseData.close ();
98
+ await profile.responseData.close ();
99
99
100
100
expect (
101
101
() => profile.responseData.bodySink.add ([1 , 2 , 3 ]),
@@ -104,7 +104,7 @@ void main() {
104
104
});
105
105
106
106
test ('then mutate' , () async {
107
- profile.responseData.close ();
107
+ await profile.responseData.close ();
108
108
109
109
expect (
110
110
() => profile.responseData.contentLength = 5 ,
0 commit comments