Skip to content

Commit

Permalink
Update pkgs/cupertino_http/example/integration_test/url_session_confi…
Browse files Browse the repository at this point in the history
…guration_test.dart

Co-authored-by: Nate Bosch <[email protected]>
  • Loading branch information
brianquinlan and natebosch authored Dec 4, 2023
1 parent 0ad674b commit 2b32e90
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ Future<Map<String, List<String>>> sentHeaders(
URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')))
..resume();
while (task.state != URLSessionTaskState.urlSessionTaskStateCompleted) {
// Let the event loop run.
await Future<void>.delayed(const Duration());
await pumpEventQueue();
}

await server.close();
Expand Down

0 comments on commit 2b32e90

Please sign in to comment.