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 2b32e90 commit 4d0faa6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Future<Map<String, List<String>>> sentHeaders(
await request.response.close();
});

final task = session.dataTaskWithRequest(
URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')))
final task = session.dataTaskWithRequest(URLRequest.fromUrl(
Uri(scheme: 'http', host: 'localhost', port: server.port)))
..resume();
while (task.state != URLSessionTaskState.urlSessionTaskStateCompleted) {
await pumpEventQueue();
Expand Down

0 comments on commit 4d0faa6

Please sign in to comment.