Skip to content

Commit fc8455a

Browse files
committed
fix: fix tests to add missing parameters
1 parent eefa301 commit fc8455a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/realtime/tests/test_connection.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ async def test_subscribe_to_private_channel_with_broadcast_replay(
517517
"config": {
518518
"private": True,
519519
"broadcast": {"replay": {"since": ten_mins_ago_ms, "limit": 100}},
520+
"presence": {"enabled": True, "key": ""},
520521
}
521522
},
522523
)
@@ -588,6 +589,7 @@ async def test_subscribe_to_channel_with_empty_replay_config(
588589
"config": {
589590
"private": False,
590591
"broadcast": {"ack": True, "self": False, "replay": {}},
592+
"presence": {"enabled": True, "key": ""},
591593
}
592594
},
593595
)
@@ -640,7 +642,13 @@ async def test_subscribe_to_channel_without_replay_config(socket: AsyncRealtimeC
640642
# Create channel without replay configuration
641643
channel: AsyncRealtimeChannel = socket.channel(
642644
"test-no-replay",
643-
params={"config": {"private": False, "broadcast": {"ack": True, "self": True}}},
645+
params={
646+
"config": {
647+
"private": False,
648+
"broadcast": {"ack": True, "self": True},
649+
"presence": {"enabled": True, "key": ""},
650+
}
651+
},
644652
)
645653

646654
# Mock the subscription callback

0 commit comments

Comments
 (0)