Skip to content

Commit ba0fbd5

Browse files
committed
test: update disconnect test to expect normalClosure (1000) instead of goingAway (1001)
1 parent 9a2ee15 commit ba0fbd5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/features/call/services/signaling_module_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ void main() {
924924
expect(disconnected.recommendedReconnectDelay, isNull);
925925
});
926926

927-
test('disconnect() passes goingAway code to the underlying client', () async {
927+
test('disconnect() passes normalClosure code to the underlying client', () async {
928928
final client = _FakeSignalingClient();
929929
final module = _buildModule(_successFactory(client));
930930
addTearDown(module.dispose);
@@ -936,7 +936,7 @@ void main() {
936936
await pumpEventQueue();
937937

938938
expect(client.disconnected, isTrue);
939-
expect(client.lastDisconnectCode, equals(SignalingDisconnectCode.goingAway.code));
939+
expect(client.lastDisconnectCode, equals(SignalingDisconnectCode.normalClosure.code));
940940
});
941941
});
942942

0 commit comments

Comments
 (0)