Skip to content

Commit 79c0e99

Browse files
committed
Updates tearDown in channel_integration_tests.dart
1 parent 5892858 commit 79c0e99

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/channel_integration_test.dart

+7-7
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void main() {
8383

8484
await socket.connect();
8585
addTearDown(() {
86-
socket.close();
86+
socket.dispose();
8787
});
8888
await resetPeer();
8989

@@ -312,8 +312,8 @@ void main() {
312312
await channel2.join().future;
313313

314314
addTearDown(() {
315-
socket1.close();
316-
socket2.close();
315+
socket1.dispose();
316+
socket2.dispose();
317317
});
318318

319319
expect(
@@ -371,8 +371,8 @@ void main() {
371371
await channel2.join().future;
372372

373373
addTearDown(() {
374-
socket1.close();
375-
socket2.close();
374+
socket1.dispose();
375+
socket2.dispose();
376376
});
377377

378378
channel1.push('ping', {'from': 'socket1'});
@@ -405,8 +405,8 @@ void main() {
405405
await channel2.join().future;
406406

407407
addTearDown(() {
408-
socket1.close();
409-
socket2.close();
408+
socket1.dispose();
409+
socket2.dispose();
410410
});
411411

412412
channel1.push('ping', {'from': 'socket1'});

0 commit comments

Comments
 (0)