Skip to content

Commit

Permalink
Ignore unawaited.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Jun 29, 2023
1 parent af98eef commit ae897af
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +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';
// ignore: unawaited_futures
request.sink.close();

final response = await client.send(request);
Expand All @@ -250,6 +251,7 @@ void testRequestBody(Client client) {
request.sink.add([]);
request.sink.add([]);
request.sink.add([]);
// ignore: unawaited_futures
request.sink.close();

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

final response = await client.send(request);
Expand Down

0 comments on commit ae897af

Please sign in to comment.