Skip to content

Commit

Permalink
Await
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Jun 29, 2023
1 parent e1eecda commit 338259f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void testRequestBody(Client client) {
test('client.send() GET with empty stream', () async {
final request = StreamedRequest('GET', Uri.http(host, ''));
request.headers['Content-Type'] = 'image/png';
request.sink.close();
await request.sink.close();

final response = await client.send(request);
expect(response.statusCode, 200);
Expand All @@ -250,7 +250,7 @@ void testRequestBody(Client client) {
request.sink.add([]);
request.sink.add([]);
request.sink.add([]);
request.sink.close();
await request.sink.close();

final response = await client.send(request);
expect(response.statusCode, 200);
Expand All @@ -266,7 +266,7 @@ void testRequestBody(Client client) {
final request = StreamedRequest('GET', Uri.http(host, ''));
request.headers['Content-Type'] = 'image/png';
request.sink.add('Hello World!'.codeUnits);
request.sink.close();
await request.sink.close();

final response = await client.send(request);
expect(response.statusCode, 200);
Expand Down

0 comments on commit 338259f

Please sign in to comment.