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

推荐订阅源

F
Fortinet All Blogs
美团技术团队
T
Tenable Blog
大猫的无限游戏
大猫的无限游戏
Schneier on Security
Schneier on Security
S
Schneier on Security
博客园_首页
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
T
Tailwind CSS Blog
GbyAI
GbyAI
C
CERT Recently Published Vulnerability Notes
博客园 - 【当耐特】
IT之家
IT之家
G
Google Developers Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Privacy International News Feed
Vercel News
Vercel News
Cyberwarzone
Cyberwarzone
N
News and Events Feed by Topic
Application and Cybersecurity Blog
Application and Cybersecurity Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Register - Security
The Register - Security
人人都是产品经理
人人都是产品经理
Cisco Talos Blog
Cisco Talos Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Project Zero
Project Zero
V
V2EX
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
月光博客
月光博客
Hacker News - Newest:
Hacker News - Newest: "LLM"
WordPress大学
WordPress大学
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
G
GRAHAM CLULEY
H
Hacker News: Front Page
Forbes - Security
Forbes - Security
H
Heimdal Security Blog
L
LINUX DO - 最新话题
L
Lohrmann on Cybersecurity
Apple Machine Learning Research
Apple Machine Learning Research
Help Net Security
Help Net Security
C
Cybersecurity and Infrastructure Security Agency CISA
Recent Announcements
Recent Announcements
C
Cisco Blogs
L
LINUX DO - 热门话题

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(gateway): abort gmail watcher reload starts (#82499) · openclaw/openclaw@adca6e9
frankekn · 2026-05-16 · via Recent Commits to openclaw:main

@@ -1,11 +1,31 @@

11

import { afterEach, describe, expect, it, vi } from "vitest";

2-

import type { ChannelKind } from "./config-reload-plan.js";

2+

import type { ConfigWriteNotification } from "../config/config.js";

3+

import type { OpenClawConfig } from "../config/types.openclaw.js";

4+

import type { ChannelKind, GatewayReloadPlan } from "./config-reload-plan.js";

35

import type { GatewayPluginReloadResult } from "./server-reload-handlers.js";

4-

import { createGatewayReloadHandlers } from "./server-reload-handlers.js";

6+

import {

7+

createGatewayReloadHandlers,

8+

startManagedGatewayConfigReloader,

9+

} from "./server-reload-handlers.js";

10+11+

type GmailWatcherRestartParams = {

12+

cfg: OpenClawConfig;

13+

log: {

14+

info: (msg: string) => void;

15+

warn: (msg: string) => void;

16+

error: (msg: string) => void;

17+

};

18+

onSkipped?: () => void;

19+

isCancelled?: () => boolean;

20+

signal?: AbortSignal;

21+

};

22+23+

type StartGmailWatcherWithLogs = (params: GmailWatcherRestartParams) => Promise<void>;

24+

type StopGmailWatcher = () => Promise<void>;

525626

const hoisted = vi.hoisted(() => ({

7-

startGmailWatcherWithLogs: vi.fn(async () => {}),

8-

stopGmailWatcher: vi.fn(async () => {}),

27+

startGmailWatcherWithLogs: vi.fn<StartGmailWatcherWithLogs>(async () => {}),

28+

stopGmailWatcher: vi.fn<StopGmailWatcher>(async () => {}),

929

activeTaskCount: { value: 0 },

1030

activeTaskBlockers: [] as Array<{

1131

taskId: string;

@@ -172,6 +192,31 @@ describe("gateway restart deferral preflight", () => {

172192

});

173193174194

describe("gateway Gmail hot reload handlers", () => {

195+

function createGmailReloadPlan(): GatewayReloadPlan {

196+

return {

197+

changedPaths: ["hooks.gmail.account"],

198+

restartGateway: false,

199+

restartReasons: [],

200+

hotReasons: ["hooks.gmail.account"],

201+

reloadHooks: false,

202+

restartGmailWatcher: true,

203+

restartCron: false,

204+

restartHeartbeat: false,

205+

restartHealthMonitor: false,

206+

reloadPlugins: false,

207+

restartChannels: new Set<ChannelKind>(),

208+

disposeMcpRuntimes: false,

209+

noopPaths: [],

210+

};

211+

}

212+213+

function createGmailConfig(account: string): OpenClawConfig {

214+

return {

215+

gateway: { reload: { debounceMs: 0 } },

216+

hooks: { enabled: true, gmail: { account } },

217+

};

218+

}

219+175220

it("stops queued post-ready sidecars before restarting Gmail watcher", async () => {

176221

const stopPostReadySidecars = vi.fn();

177222

const { applyHotReload } = createGatewayReloadHandlers({

@@ -232,6 +277,277 @@ describe("gateway Gmail hot reload handlers", () => {

232277

expect.objectContaining({ cfg: nextConfig }),

233278

);

234279

});

280+281+

it("passes a cancellable signal to Gmail watcher restarts", async () => {

282+

const abortController = new AbortController();

283+

const clearGmailRestartAbortController = vi.fn();

284+

const { applyHotReload } = createGatewayReloadHandlers({

285+

deps: {} as never,

286+

broadcast: vi.fn(),

287+

getState: () => ({

288+

hooksConfig: {} as never,

289+

hookClientIpConfig: {} as never,

290+

heartbeatRunner: { stop: vi.fn(), updateConfig: vi.fn() } as never,

291+

cronState: {

292+

cron: { start: vi.fn(async () => {}), stop: vi.fn() },

293+

storePath: "/tmp/cron.json",

294+

cronEnabled: false,

295+

} as never,

296+

channelHealthMonitor: null,

297+

}),

298+

setState: vi.fn(),

299+

startChannel: vi.fn(async () => {}),

300+

stopChannel: vi.fn(async () => {}),

301+

reloadPlugins: vi.fn(

302+

async (): Promise<GatewayPluginReloadResult> => ({

303+

restartChannels: new Set(),

304+

activeChannels: new Set(),

305+

}),

306+

),

307+

logHooks: { info: vi.fn(), warn: vi.fn(), error: vi.fn() },

308+

logChannels: { info: vi.fn(), error: vi.fn() },

309+

logCron: { error: vi.fn() },

310+

logReload: { info: vi.fn(), warn: vi.fn() },

311+

createHealthMonitor: () => null,

312+

createGmailRestartAbortController: () => abortController,

313+

clearGmailRestartAbortController,

314+

});

315+

const nextConfig = createGmailConfig("next@example.com");

316+317+

await applyHotReload(createGmailReloadPlan(), nextConfig);

318+319+

const [restartParams] = hoisted.startGmailWatcherWithLogs.mock.calls[0] ?? [];

320+

expect(restartParams).toMatchObject({ cfg: nextConfig });

321+

expect(restartParams?.signal).toBe(abortController.signal);

322+

expect(restartParams?.isCancelled?.()).toBe(false);

323+

abortController.abort();

324+

expect(restartParams?.isCancelled?.()).toBe(true);

325+

expect(clearGmailRestartAbortController).toHaveBeenCalledWith(abortController);

326+

});

327+328+

it("aborts an in-flight managed Gmail restart when the reloader stops", async () => {

329+

const writeListenerRef: { current: ((event: ConfigWriteNotification) => void) | null } = {

330+

current: null,

331+

};

332+

let restartSignal: AbortSignal | undefined;

333+

let restartEntered: (() => void) | undefined;

334+

const restartStarted = new Promise<void>((resolve) => {

335+

restartEntered = resolve;

336+

});

337+

hoisted.startGmailWatcherWithLogs.mockImplementationOnce(

338+

async (params: GmailWatcherRestartParams) => {

339+

restartSignal = params.signal;

340+

restartEntered?.();

341+

await new Promise<void>((resolve) => {

342+

params.signal?.addEventListener("abort", () => resolve(), { once: true });

343+

});

344+

},

345+

);

346+

const initialConfig = createGmailConfig("old@example.com");

347+

const nextConfig = createGmailConfig("next@example.com");

348+

const readSnapshot = vi.fn(async () => ({

349+

path: "/tmp/openclaw.json",

350+

exists: true,

351+

raw: "{}",

352+

parsed: {},

353+

sourceConfig: nextConfig,

354+

resolved: nextConfig,

355+

valid: true,

356+

runtimeConfig: nextConfig,

357+

config: nextConfig,

358+

issues: [],

359+

warnings: [],

360+

legacyIssues: [],

361+

hash: "hash-next",

362+

}));

363+

const reloader = startManagedGatewayConfigReloader({

364+

minimalTestGateway: false,

365+

initialConfig,

366+

initialCompareConfig: initialConfig,

367+

initialInternalWriteHash: null,

368+

watchPath: "/tmp/openclaw.json",

369+

readSnapshot: readSnapshot as never,

370+

promoteSnapshot: vi.fn(async () => true) as never,

371+

subscribeToWrites: ((listener: (event: ConfigWriteNotification) => void) => {

372+

writeListenerRef.current = listener;

373+

return () => {

374+

if (writeListenerRef.current === listener) {

375+

writeListenerRef.current = null;

376+

}

377+

};

378+

}) as never,

379+

deps: {} as never,

380+

broadcast: vi.fn(),

381+

getState: () => ({

382+

hooksConfig: {} as never,

383+

hookClientIpConfig: {} as never,

384+

heartbeatRunner: { stop: vi.fn(), updateConfig: vi.fn() } as never,

385+

cronState: {

386+

cron: { start: vi.fn(async () => {}), stop: vi.fn() },

387+

storePath: "/tmp/cron.json",

388+

cronEnabled: false,

389+

} as never,

390+

channelHealthMonitor: null,

391+

}),

392+

setState: vi.fn(),

393+

startChannel: vi.fn(async () => {}),

394+

stopChannel: vi.fn(async () => {}),

395+

reloadPlugins: vi.fn(

396+

async (): Promise<GatewayPluginReloadResult> => ({

397+

restartChannels: new Set(),

398+

activeChannels: new Set(),

399+

}),

400+

),

401+

logHooks: { info: vi.fn(), warn: vi.fn(), error: vi.fn() },

402+

logChannels: { info: vi.fn(), error: vi.fn() },

403+

logCron: { error: vi.fn() },

404+

logReload: { info: vi.fn(), warn: vi.fn(), error: vi.fn() },

405+

channelManager: {} as never,

406+

activateRuntimeSecrets: vi.fn(async (config: OpenClawConfig) => ({

407+

sourceConfig: config,

408+

config,

409+

authStores: [],

410+

warnings: [],

411+

webTools: {},

412+

})) as never,

413+

resolveSharedGatewaySessionGenerationForConfig: () => undefined,

414+

sharedGatewaySessionGenerationState: { current: undefined, required: null },

415+

clients: [],

416+

});

417+

const registeredWriteListener = writeListenerRef.current;

418+

if (!registeredWriteListener) {

419+

throw new Error("Expected config write listener to be registered");

420+

}

421+422+

registeredWriteListener({

423+

configPath: "/tmp/openclaw.json",

424+

sourceConfig: nextConfig,

425+

runtimeConfig: nextConfig,

426+

persistedHash: "hash-next",

427+

revision: 1,

428+

fingerprint: "runtime-hash-next",

429+

sourceFingerprint: "source-hash-next",

430+

writtenAtMs: Date.now(),

431+

});

432+

await restartStarted;

433+

expect(restartSignal?.aborted).toBe(false);

434+435+

await reloader.stop();

436+437+

expect(restartSignal?.aborted).toBe(true);

438+

});

439+440+

it("does not start a Gmail restart after the managed reloader stops before hot reload applies", async () => {

441+

const writeListenerRef: { current: ((event: ConfigWriteNotification) => void) | null } = {

442+

current: null,

443+

};

444+

let releaseSecrets: (() => void) | undefined;

445+

let secretsEntered: (() => void) | undefined;

446+

const secretsStarted = new Promise<void>((resolve) => {

447+

secretsEntered = resolve;

448+

});

449+

const releaseSecretsPromise = new Promise<void>((resolve) => {

450+

releaseSecrets = resolve;

451+

});

452+

const initialConfig = createGmailConfig("old@example.com");

453+

const nextConfig = createGmailConfig("next@example.com");

454+

const reloader = startManagedGatewayConfigReloader({

455+

minimalTestGateway: false,

456+

initialConfig,

457+

initialCompareConfig: initialConfig,

458+

initialInternalWriteHash: null,

459+

watchPath: "/tmp/openclaw.json",

460+

readSnapshot: vi.fn(async () => ({

461+

path: "/tmp/openclaw.json",

462+

exists: true,

463+

raw: "{}",

464+

parsed: {},

465+

sourceConfig: nextConfig,

466+

resolved: nextConfig,

467+

valid: true,

468+

runtimeConfig: nextConfig,

469+

config: nextConfig,

470+

issues: [],

471+

warnings: [],

472+

legacyIssues: [],

473+

hash: "hash-next",

474+

})) as never,

475+

promoteSnapshot: vi.fn(async () => true) as never,

476+

subscribeToWrites: ((listener: (event: ConfigWriteNotification) => void) => {

477+

writeListenerRef.current = listener;

478+

return () => {

479+

if (writeListenerRef.current === listener) {

480+

writeListenerRef.current = null;

481+

}

482+

};

483+

}) as never,

484+

deps: {} as never,

485+

broadcast: vi.fn(),

486+

getState: () => ({

487+

hooksConfig: {} as never,

488+

hookClientIpConfig: {} as never,

489+

heartbeatRunner: { stop: vi.fn(), updateConfig: vi.fn() } as never,

490+

cronState: {

491+

cron: { start: vi.fn(async () => {}), stop: vi.fn() },

492+

storePath: "/tmp/cron.json",

493+

cronEnabled: false,

494+

} as never,

495+

channelHealthMonitor: null,

496+

}),

497+

setState: vi.fn(),

498+

startChannel: vi.fn(async () => {}),

499+

stopChannel: vi.fn(async () => {}),

500+

reloadPlugins: vi.fn(

501+

async (): Promise<GatewayPluginReloadResult> => ({

502+

restartChannels: new Set(),

503+

activeChannels: new Set(),

504+

}),

505+

),

506+

logHooks: { info: vi.fn(), warn: vi.fn(), error: vi.fn() },

507+

logChannels: { info: vi.fn(), error: vi.fn() },

508+

logCron: { error: vi.fn() },

509+

logReload: { info: vi.fn(), warn: vi.fn(), error: vi.fn() },

510+

channelManager: {} as never,

511+

activateRuntimeSecrets: vi.fn(async (config: OpenClawConfig) => {

512+

secretsEntered?.();

513+

await releaseSecretsPromise;

514+

return {

515+

sourceConfig: config,

516+

config,

517+

authStores: [],

518+

warnings: [],

519+

webTools: {},

520+

};

521+

}) as never,

522+

resolveSharedGatewaySessionGenerationForConfig: () => undefined,

523+

sharedGatewaySessionGenerationState: { current: undefined, required: null },

524+

clients: [],

525+

});

526+

const registeredWriteListener = writeListenerRef.current;

527+

if (!registeredWriteListener) {

528+

throw new Error("Expected config write listener to be registered");

529+

}

530+531+

registeredWriteListener({

532+

configPath: "/tmp/openclaw.json",

533+

sourceConfig: nextConfig,

534+

runtimeConfig: nextConfig,

535+

persistedHash: "hash-next",

536+

revision: 1,

537+

fingerprint: "runtime-hash-next",

538+

sourceFingerprint: "source-hash-next",

539+

writtenAtMs: Date.now(),

540+

});

541+

await secretsStarted;

542+543+

const stopPromise = reloader.stop();

544+

releaseSecrets?.();

545+

await stopPromise;

546+

await new Promise<void>((resolve) => setImmediate(resolve));

547+548+

expect(hoisted.stopGmailWatcher).not.toHaveBeenCalled();

549+

expect(hoisted.startGmailWatcherWithLogs).not.toHaveBeenCalled();

550+

});

235551

});

236552237553

describe("gateway plugin hot reload handlers", () => {