mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 12:50:35 +00:00
perf(test): compact heartbeat session fixture writes
This commit is contained in:
@@ -21,17 +21,13 @@ export async function seedSessionStore(
|
|||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
await fs.writeFile(
|
await fs.writeFile(
|
||||||
storePath,
|
storePath,
|
||||||
JSON.stringify(
|
JSON.stringify({
|
||||||
{
|
[sessionKey]: {
|
||||||
[sessionKey]: {
|
sessionId: session.sessionId ?? "sid",
|
||||||
sessionId: session.sessionId ?? "sid",
|
updatedAt: session.updatedAt ?? Date.now(),
|
||||||
updatedAt: session.updatedAt ?? Date.now(),
|
...session,
|
||||||
...session,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
null,
|
}),
|
||||||
2,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user