feat : update
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { PRESENCE_HEARTBEAT_MS, PRESENCE_TTL_MS } from "./presence-constants";
|
||||
|
||||
describe("presence timing", () => {
|
||||
it("expires only after several missed heartbeats", () => {
|
||||
expect(PRESENCE_HEARTBEAT_MS).toBe(15_000);
|
||||
expect(PRESENCE_TTL_MS).toBeGreaterThanOrEqual(PRESENCE_HEARTBEAT_MS * 3);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user