mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 04:50:44 +00:00
test: tighten session proxy assertions
This commit is contained in:
@@ -464,6 +464,7 @@ describe("proxy cli runtime", () => {
|
||||
const { runDebugProxyRunCommand } = await import("./proxy-cli.runtime.js");
|
||||
const { getDebugProxyCaptureStore } = await import("../proxy-capture/store.sqlite.js");
|
||||
|
||||
const beforeRun = Date.now();
|
||||
await expect(
|
||||
runDebugProxyRunCommand({
|
||||
commandArgs: ["does-not-exist"],
|
||||
@@ -478,6 +479,6 @@ describe("proxy cli runtime", () => {
|
||||
);
|
||||
const [session] = store.listSessions(5);
|
||||
expect(session?.mode).toBe("proxy-run");
|
||||
expect(session?.endedAt).toEqual(expect.any(Number));
|
||||
expect(session?.endedAt).toBeGreaterThanOrEqual(beforeRun);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user