mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 04:50:23 +00:00
* fix(gateway): guard stale-socket restarts by event liveness * fix(gateway): centralize connect-time liveness tracking * fix(web): apply connected status patch atomically * fix(gateway): require active socket for stale checks * fix(gateway): ignore inherited stale event timestamps
13 lines
410 B
TypeScript
13 lines
410 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { createConnectedChannelStatusPatch } from "./channel-status-patches.js";
|
|
|
|
describe("createConnectedChannelStatusPatch", () => {
|
|
it("uses one timestamp for connected event-liveness state", () => {
|
|
expect(createConnectedChannelStatusPatch(1234)).toEqual({
|
|
connected: true,
|
|
lastConnectedAt: 1234,
|
|
lastEventAt: 1234,
|
|
});
|
|
});
|
|
});
|