Skip to content

Commit 0a880ed

Browse files
committed
Update close_local_tests.dart
1 parent de1f873 commit 0a880ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/web_socket_conformance_tests/lib/src/close_local_tests.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
import 'dart:isolate';
56
import 'dart:typed_data';
67

78
import 'package:async/async.dart';
@@ -135,7 +136,7 @@ void testCloseLocal(
135136
..sendText('Hello World')
136137
..sendText('Hello World 2')
137138
..sendText('Hello World 3');
138-
await channel.close(3000, 'Client initiated closure');
139+
await Isolate.run(() => channel.close(3000, 'Client initiated closure'));
139140
final closeCode = await httpServerQueue.next as int?;
140141
final closeReason = await httpServerQueue.next as String?;
141142

0 commit comments

Comments
 (0)