From 0a34ffbedcb0abf91514fefa61db707e0f47c09d Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 22 Nov 2023 12:15:57 -0800 Subject: [PATCH] move to unawaited --- pkgs/cupertino_http/example/integration_test/client_test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/cupertino_http/example/integration_test/client_test.dart b/pkgs/cupertino_http/example/integration_test/client_test.dart index ff50994d1e..b51c595e1c 100644 --- a/pkgs/cupertino_http/example/integration_test/client_test.dart +++ b/pkgs/cupertino_http/example/integration_test/client_test.dart @@ -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'; @@ -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); });