We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de1f873 commit 0a880edCopy full SHA for 0a880ed
pkgs/web_socket_conformance_tests/lib/src/close_local_tests.dart
@@ -2,6 +2,7 @@
2
// for details. All rights reserved. Use of this source code is governed by a
3
// BSD-style license that can be found in the LICENSE file.
4
5
+import 'dart:isolate';
6
import 'dart:typed_data';
7
8
import 'package:async/async.dart';
@@ -135,7 +136,7 @@ void testCloseLocal(
135
136
..sendText('Hello World')
137
..sendText('Hello World 2')
138
..sendText('Hello World 3');
- await channel.close(3000, 'Client initiated closure');
139
+ await Isolate.run(() => channel.close(3000, 'Client initiated closure'));
140
final closeCode = await httpServerQueue.next as int?;
141
final closeReason = await httpServerQueue.next as String?;
142
0 commit comments