File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -140,9 +140,9 @@ async def mock_receive():
140140 # Give other tasks a chance to run. This is important for the finally block.
141141 await anyio .sleep (0.01 )
142142
143- assert (
144- session_id not in manager . _server_instances
145- ), "Session ID should be removed from _server_instances after graceful exit"
143+ assert session_id not in manager . _server_instances , (
144+ "Session ID should be removed from _server_instances after graceful exit"
145+ )
146146 assert not manager ._server_instances , "No sessions should be tracked after the only session exits gracefully"
147147
148148
@@ -193,7 +193,7 @@ async def mock_receive():
193193 # Give other tasks a chance to run to ensure the finally block executes
194194 await anyio .sleep (0.01 )
195195
196- assert (
197- session_id not in manager . _server_instances
198- ), "Session ID should be removed from _server_instances after an exception"
196+ assert session_id not in manager . _server_instances , (
197+ "Session ID should be removed from _server_instances after an exception"
198+ )
199199 assert not manager ._server_instances , "No sessions should be tracked after the only session crashes"
You can’t perform that action at this time.
0 commit comments