mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:00:42 +00:00
test(feishu): normalize dispatcher deliver promise
This commit is contained in:
@@ -124,7 +124,9 @@ describe("createFeishuCommentReplyDispatcher", () => {
|
||||
createTestCommentReplyDispatcher();
|
||||
|
||||
const options = latestReplyDispatcherOptions();
|
||||
const deliverPromise = options.deliver({ text: "hello world" }, { kind: "final" });
|
||||
const deliverPromise = Promise.resolve(
|
||||
options.deliver({ text: "hello world" }, { kind: "final" }),
|
||||
);
|
||||
const status = await Promise.race([
|
||||
deliverPromise.then(() => "done"),
|
||||
new Promise<string>((resolve) => setTimeout(() => resolve("pending"), 0)),
|
||||
|
||||
Reference in New Issue
Block a user