Avoid error on context double pops

harden_cluster_tests
Tyler Goodlet 2022-12-11 19:48:54 -05:00
parent b5192cca8e
commit 38326e8c15
1 changed files with 4 additions and 1 deletions

View File

@ -536,7 +536,10 @@ class Portal:
await maybe_wait_for_debugger()
# remove the context from runtime tracking
self.actor._contexts.pop((self.channel.uid, ctx.cid))
self.actor._contexts.pop(
(self.channel.uid, ctx.cid),
None,
)
@dataclass