test(gateway): refresh startup assertions · openclaw/openclaw@3613981
steipete
·
2026-06-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -57,7 +57,7 @@ describe("gateway startup import boundaries", () => {
|
57 | 57 | |
58 | 58 | it("marks gateway close before awaiting gateway_stop hooks", () => { |
59 | 59 | const serverImpl = readSource("src/gateway/server.impl.ts"); |
60 | | -const closeStart = serverImpl.indexOf("close: async (opts)"); |
| 60 | +const closeStart = /close:\s*async\s*\([^)]*\)\s*=>/u.exec(serverImpl)?.index ?? -1; |
61 | 61 | const hookStart = serverImpl.indexOf("runGlobalGatewayStopSafely", closeStart); |
62 | 62 | const markStart = serverImpl.indexOf("markClosePreludeStarted();", closeStart); |
63 | 63 | const markHelperStart = serverImpl.indexOf("const markClosePreludeStarted = () => {"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。