mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-16 19:51:11 +00:00
fix(ci): drain telegram thread-binding persists before reset
This commit is contained in:
@@ -856,6 +856,10 @@ export async function resetTelegramThreadBindingsForTests() {
|
||||
for (const manager of getThreadBindingsState().managersByAccountId.values()) {
|
||||
manager.stop();
|
||||
}
|
||||
const pendingPersists = [...getThreadBindingsState().persistQueueByAccountId.values()];
|
||||
if (pendingPersists.length > 0) {
|
||||
await Promise.allSettled(pendingPersists);
|
||||
}
|
||||
getThreadBindingsState().persistQueueByAccountId.clear();
|
||||
getThreadBindingsState().managersByAccountId.clear();
|
||||
getThreadBindingsState().bindingsByAccountConversation.clear();
|
||||
|
||||
Reference in New Issue
Block a user