Skip to content

Commit ea90899

Browse files
committed
fix.
1 parent f467443 commit ea90899

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

livekit-rtc/tests/test_basic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import pytest
2020

2121
from livekit import api, rtc
22+
from livekit.rtc.room import EventTypes
2223

2324

2425
WAIT_TIMEOUT = 20.0
@@ -98,7 +99,9 @@ def _has_subscribed() -> bool:
9899

99100

100101
def _expect_event(
101-
room: rtc.Room, event: str, predicate: Optional[Callable[..., bool]] = None
102+
room: rtc.Room,
103+
event: EventTypes,
104+
predicate: Optional[Callable[..., bool]] = None,
102105
) -> asyncio.Future:
103106
"""Returns a future that resolves when `event` (optionally matching
104107
`predicate`) is fired on `room`."""

0 commit comments

Comments
 (0)