@@ -78,7 +78,7 @@ async def test_client_actions(s, a, b, direct_to_workers):
7878
7979 assert counter ._address == a .address
8080
81- assert isinstance (a .actors [counter .key ], Counter )
81+ assert isinstance (a .state . actors [counter .key ], Counter )
8282 assert s .tasks [counter .key ].actor
8383
8484 await asyncio .gather (counter .increment (), counter .increment ())
@@ -186,7 +186,7 @@ async def test_gc(c, s, a, b):
186186 await wait (actor )
187187 del actor
188188
189- while a .actors or b .actors :
189+ while a .state . actors or b . state .actors :
190190 await asyncio .sleep (0.01 )
191191
192192
@@ -200,15 +200,15 @@ async def test_track_dependencies(c, s, a, b):
200200
201201 await asyncio .sleep (0.3 )
202202
203- assert a .actors or b .actors
203+ assert a .state . actors or b . state .actors
204204
205205
206206@gen_cluster (client = True )
207207async def test_future (c , s , a , b ):
208208 counter = c .submit (Counter , actor = True , workers = [a .address ])
209209 assert isinstance (counter , Future )
210210 await wait (counter )
211- assert isinstance (a .actors [counter .key ], Counter )
211+ assert isinstance (a .state . actors [counter .key ], Counter )
212212
213213 counter = await counter
214214 assert isinstance (counter , Actor )
@@ -364,7 +364,7 @@ def add(n, counter):
364364 while not done .done ():
365365 assert (
366366 len ([ws for ws in s .workers .values () if ws .processing ])
367- <= a .nthreads + b .nthreads
367+ <= a .state . nthreads + b . state .nthreads
368368 )
369369 await asyncio .sleep (0.01 )
370370
@@ -430,7 +430,7 @@ def __init__(self, x, y=None):
430430 actors = c .map (Foo , range (10 ), y = b , actor = True )
431431 await wait (actors )
432432
433- assert all (len (w .actors ) == 2 for w in workers )
433+ assert all (len (w .state . actors ) == 2 for w in workers )
434434
435435
436436@gen_cluster (client = True , nthreads = [("127.0.0.1" , 1 )] * 4 , Worker = Nanny )
@@ -588,7 +588,7 @@ async def test_worker_actor_handle_is_weakref(c, s, a, b):
588588 del counter
589589
590590 start = time ()
591- while a .actors or b .data :
591+ while a .state . actors or b .data :
592592 await asyncio .sleep (0.1 )
593593 assert time () < start + 30
594594
0 commit comments