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 @@ -135,9 +135,9 @@ async def mock_receive():
135135 # Give other tasks a chance to run. This is important for the finally block.
136136 await anyio .sleep (0.01 )
137137
138- assert session_id not in manager . _server_instances , (
139- "Session ID should be removed from _server_instances after graceful exit"
140- )
138+ assert (
139+ session_id not in manager . _server_instances
140+ ), "Session ID should be removed from _server_instances after graceful exit"
141141 assert not manager ._server_instances , "No sessions should be tracked after the only session exits gracefully"
142142
143143
@@ -191,7 +191,7 @@ async def mock_receive():
191191 # Give other tasks a chance to run to ensure the finally block executes
192192 await anyio .sleep (0.01 )
193193
194- assert session_id not in manager . _server_instances , (
195- "Session ID should be removed from _server_instances after an exception"
196- )
194+ assert (
195+ session_id not in manager . _server_instances
196+ ), "Session ID should be removed from _server_instances after an exception"
197197 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