Skip to content

Commit

Permalink
Update http_url_response_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Oct 2, 2024
1 parent e256587 commit 6e1c66f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ void main() {
final task = session.dataTaskWithRequest(
URLRequest.fromUrl(Uri.parse('http://localhost:${server.port}')))
..resume();
while (task.state != URLSessionTaskState.urlSessionTaskStateCompleted) {
while (
task.state != NSURLSessionTaskState.NSURLSessionTaskStateCompleted) {
// Let the event loop run.
await Future<void>(() {});
}
Expand Down

0 comments on commit 6e1c66f

Please sign in to comment.