@@ -119,7 +119,7 @@ async def test_coordination_node_lifecycle_async(self, async_coordination_node):
119119 async def test_coordination_lock_describe_full_async (self , async_coordination_node ):
120120 client , node_path , _ = async_coordination_node
121121
122- async with client .node (node_path ) as node :
122+ async with client .session (node_path ) as node :
123123 lock = node .lock ("test_lock" )
124124
125125 desc = await lock .describe ()
@@ -139,7 +139,7 @@ async def test_coordination_lock_describe_full_async(self, async_coordination_no
139139 def test_coordination_lock_describe_full (self , sync_coordination_node ):
140140 client , node_path , _ = sync_coordination_node
141141
142- with client .node (node_path ) as node :
142+ with client .session (node_path ) as node :
143143 lock = node .lock ("test_lock" )
144144
145145 desc = lock .describe ()
@@ -160,7 +160,7 @@ async def test_coordination_lock_racing_async(self, async_coordination_node):
160160 client , node_path , _ = async_coordination_node
161161 timeout = 5
162162
163- async with client .node (node_path ) as node :
163+ async with client .session (node_path ) as node :
164164 lock2_started = asyncio .Event ()
165165 lock2_acquired = asyncio .Event ()
166166 lock2_release = asyncio .Event ()
@@ -183,7 +183,7 @@ def test_coordination_lock_racing(self, sync_coordination_node):
183183 client , node_path , _ = sync_coordination_node
184184 timeout = 5
185185
186- with client .node (node_path ) as node :
186+ with client .session (node_path ) as node :
187187 lock2_started = threading .Event ()
188188 lock2_acquired = threading .Event ()
189189 lock2_release = threading .Event ()
@@ -207,7 +207,7 @@ def second_lock_task():
207207 async def test_coordination_reconnect_async (self , async_coordination_node ):
208208 client , node_path , _ = async_coordination_node
209209
210- async with client .node (node_path ) as node :
210+ async with client .session (node_path ) as node :
211211 lock = node .lock ("test_lock" )
212212
213213 async with lock :
@@ -221,7 +221,7 @@ async def test_coordination_reconnect_async(self, async_coordination_node):
221221 async def test_same_lock_cannot_be_acquired_twice (self , async_coordination_node ):
222222 client , node_path , _ = async_coordination_node
223223
224- async with client .node (node_path ) as node :
224+ async with client .session (node_path ) as node :
225225 lock1 = node .lock ("lock1" )
226226 lock1_1 = node .lock ("lock1" )
227227
0 commit comments