
























@@ -535,38 +535,6 @@ describe("telegramPlugin gateway startup", () => {
535535expect(startedProbes).toBe(2);
536536});
537537538-it("starts each Telegram monitor after a successful startup probe", async () => {
539-installTelegramRuntime();
540-const releaseProbe: Array<() => void> = [];
541-let activeProbes = 0;
542-let maxActiveProbes = 0;
543-probeTelegram.mockImplementation(async () => {
544-activeProbes += 1;
545-maxActiveProbes = Math.max(maxActiveProbes, activeProbes);
546-await new Promise<void>((resolve) => {
547-releaseProbe.push(resolve);
548-});
549-activeProbes -= 1;
550-return {
551-ok: true,
552-status: null,
553-error: null,
554-elapsedMs: 12,
555-};
556-});
557-monitorTelegramProvider.mockResolvedValue(undefined);
558-559-const account = startTelegramAccount("alpha");
560-try {
561-await waitForCondition(() => releaseProbe.length === 1, "expected startup probe to begin");
562-} finally {
563-await releaseStartupProbeControls(releaseProbe);
564-}
565-await account.task;
566-expect(maxActiveProbes).toBe(1);
567-expect(monitorTelegramProvider).toHaveBeenCalledTimes(1);
568-});
569-570538it("releases a stopped stale polling lease for the account token", async () => {
571539vi.useFakeTimers();
572540try {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。