Skip to content

Commit 1ff5c21

Browse files
committed
more informative exception
1 parent 40d946d commit 1ff5c21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distributed/tests/test_actor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,10 @@ def sleep(self, time):
487487

488488
for i in range(5):
489489
yield sleeper.sleep(0.200)
490-
if (list(a.profile_recent['children'])[0].startswith('sleep') and
490+
if (list(a.profile_recent['children'])[0].startswith('sleep') or
491491
'Sleeper.sleep' in a.profile_keys):
492492
return
493-
assert False
493+
assert False, list(a.profile_keys)
494494

495495

496496
@gen_cluster(client=True)

0 commit comments

Comments
 (0)