File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -318,9 +318,7 @@ async def perform_rpc(
318318 queue = FfiClient .instance .queue .subscribe ()
319319 try :
320320 resp = FfiClient .instance .request (req )
321- cb = await queue .wait_for (
322- lambda e : (e .perform_rpc .async_id == resp .perform_rpc .async_id )
323- )
321+ cb = await queue .wait_for (lambda e : e .perform_rpc .async_id == resp .perform_rpc .async_id )
324322 finally :
325323 FfiClient .instance .queue .unsubscribe (queue )
326324
Original file line number Diff line number Diff line change @@ -314,9 +314,11 @@ def on_room2_track_unpublished(
314314 await room1 .connect (url , token1 )
315315
316316 await assert_eventually (
317- lambda : len (events ["connection_state_changed" ]) > 0
318- and events ["connection_state_changed" ][- 1 ]
319- == f"room1-{ rtc .ConnectionState .CONN_CONNECTED } " ,
317+ lambda : (
318+ len (events ["connection_state_changed" ]) > 0
319+ and events ["connection_state_changed" ][- 1 ]
320+ == f"room1-{ rtc .ConnectionState .CONN_CONNECTED } "
321+ ),
320322 message = "room1 connection_state_changed event not fired or did not reach CONN_CONNECTED state" ,
321323 )
322324
@@ -370,9 +372,13 @@ def on_room2_track_unpublished(
370372 await room1 .disconnect ()
371373
372374 await assert_eventually (
373- lambda : lambda : len (events ["connection_state_changed" ]) > 0
374- and events ["connection_state_changed" ][- 1 ]
375- == f"room1-{ rtc .ConnectionState .CONN_DISCONNECTED } " ,
375+ lambda : (
376+ lambda : (
377+ len (events ["connection_state_changed" ]) > 0
378+ and events ["connection_state_changed" ][- 1 ]
379+ == f"room1-{ rtc .ConnectionState .CONN_DISCONNECTED } "
380+ )
381+ ),
376382 message = "room1 disconnected event not fired" ,
377383 )
378384
You can’t perform that action at this time.
0 commit comments