Skip to content

Commit

Permalink
move to unawaited
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Nov 22, 2023
1 parent 23b7446 commit 0a34ffb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:async';
import 'dart:io';
import 'dart:typed_data';

Expand Down Expand Up @@ -46,7 +47,7 @@ void testClient(Client client) {
}
final request = StreamedRequest('POST', uri);
request.sink.add(data);
await request.sink.close();
unawaited(request.sink.close());
await client.send(request);
expect(serverHash, sha1.convert(data).bytes);
});
Expand Down

0 comments on commit 0a34ffb

Please sign in to comment.