Skip to content

Commit

Permalink
Test fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Aug 8, 2024
1 parent 9301e36 commit 26a8afe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distributed/tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3003,7 +3003,7 @@ async def test_log_remove_worker(c, s, a, b):
events = {topic: [ev for _, ev in evs] for topic, evs in s.get_events().items()}
for evs in events.values():
for ev in evs:
if ev["action"] == "retire-workers":
if ev.get("action", None) == "retire-workers":
for k in ("retired", "could-not-retire"):
ev[k] = {addr: "snip" for addr in ev[k]}
if "stimulus_id" in ev: # Strip timestamp
Expand Down Expand Up @@ -3083,6 +3083,7 @@ async def test_log_remove_worker(c, s, a, b):
"worker": b.address,
},
],
"worker-get-client": [{"client": c.id, "timeout": 5, "worker": b.address}],
}


Expand Down

0 comments on commit 26a8afe

Please sign in to comment.