惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
罗磊的独立博客
M
MIT News - Artificial intelligence
G
Google Developers Blog
V
V2EX
D
Docker
博客园_首页
The Cloudflare Blog
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
WordPress大学
WordPress大学
T
Tailwind CSS Blog
博客园 - 司徒正美
J
Java Code Geeks
L
LangChain Blog
博客园 - 三生石上(FineUI控件)
B
Blog RSS Feed
博客园 - 【当耐特】
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: tighten feishu comment reaction requests · openclaw...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

@@ -18,6 +18,21 @@ vi.mock("./client.js", () => ({

18181919

describe("createCommentTypingReactionLifecycle", () => {

2020

const request = vi.fn();

21+

const commentReactionUrl =

22+

"/open-apis/drive/v2/files/doc_token_1/comments/reaction?file_type=docx";

23+24+

function expectedTypingReactionRequest(action: "add" | "delete") {

25+

return {

26+

method: "POST",

27+

url: commentReactionUrl,

28+

data: {

29+

action,

30+

reply_id: "reply_1",

31+

reaction_type: "Typing",

32+

},

33+

timeout: 30_000,

34+

};

35+

}

21362237

afterAll(() => {

2338

vi.doUnmock("./accounts.js");

@@ -71,30 +86,8 @@ describe("createCommentTypingReactionLifecycle", () => {

7186

await lifecycle.start();

7287

await lifecycle.cleanup();

738874-

expect(request).toHaveBeenNthCalledWith(

75-

1,

76-

expect.objectContaining({

77-

method: "POST",

78-

url: "/open-apis/drive/v2/files/doc_token_1/comments/reaction?file_type=docx",

79-

data: {

80-

action: "add",

81-

reply_id: "reply_1",

82-

reaction_type: "Typing",

83-

},

84-

}),

85-

);

86-

expect(request).toHaveBeenNthCalledWith(

87-

2,

88-

expect.objectContaining({

89-

method: "POST",

90-

url: "/open-apis/drive/v2/files/doc_token_1/comments/reaction?file_type=docx",

91-

data: {

92-

action: "delete",

93-

reply_id: "reply_1",

94-

reaction_type: "Typing",

95-

},

96-

}),

97-

);

89+

expect(request).toHaveBeenNthCalledWith(1, expectedTypingReactionRequest("add"));

90+

expect(request).toHaveBeenNthCalledWith(2, expectedTypingReactionRequest("delete"));

9891

});

999210093

it("skips requests when reply_id is missing", async () => {

@@ -114,16 +107,7 @@ describe("createCommentTypingReactionLifecycle", () => {

114107

await lifecycle.cleanup();

115108116109

expect(request).toHaveBeenCalledTimes(2);

117-

expect(request).toHaveBeenNthCalledWith(

118-

2,

119-

expect.objectContaining({

120-

data: {

121-

action: "delete",

122-

reply_id: "reply_1",

123-

reaction_type: "Typing",

124-

},

125-

}),

126-

);

110+

expect(request).toHaveBeenNthCalledWith(2, expectedTypingReactionRequest("delete"));

127111

});

128112129113

it("retries delete during later cleanup after an ambient delete failure", async () => {

@@ -148,25 +132,7 @@ describe("createCommentTypingReactionLifecycle", () => {

148132

await lifecycle.cleanup();

149133150134

expect(request).toHaveBeenCalledTimes(3);

151-

expect(request).toHaveBeenNthCalledWith(

152-

2,

153-

expect.objectContaining({

154-

data: {

155-

action: "delete",

156-

reply_id: "reply_1",

157-

reaction_type: "Typing",

158-

},

159-

}),

160-

);

161-

expect(request).toHaveBeenNthCalledWith(

162-

3,

163-

expect.objectContaining({

164-

data: {

165-

action: "delete",

166-

reply_id: "reply_1",

167-

reaction_type: "Typing",

168-

},

169-

}),

170-

);

135+

expect(request).toHaveBeenNthCalledWith(2, expectedTypingReactionRequest("delete"));

136+

expect(request).toHaveBeenNthCalledWith(3, expectedTypingReactionRequest("delete"));

171137

});

172138

});