mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 05:27:39 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -23,7 +23,7 @@ describe("Session Store Cache", () => {
|
||||
clearSessionStoreCacheForTest();
|
||||
|
||||
// Reset environment variable
|
||||
delete process.env.CLAWDBOT_SESSION_CACHE_TTL_MS;
|
||||
delete process.env.OPENCLAW_SESSION_CACHE_TTL_MS;
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
@@ -32,7 +32,7 @@ describe("Session Store Cache", () => {
|
||||
fs.rmSync(testDir, { recursive: true, force: true });
|
||||
}
|
||||
clearSessionStoreCacheForTest();
|
||||
delete process.env.CLAWDBOT_SESSION_CACHE_TTL_MS;
|
||||
delete process.env.OPENCLAW_SESSION_CACHE_TTL_MS;
|
||||
});
|
||||
|
||||
it("should load session store from disk on first call", async () => {
|
||||
@@ -161,8 +161,8 @@ describe("Session Store Cache", () => {
|
||||
expect(loaded2["session:1"].displayName).toBe("Updated Session 1");
|
||||
});
|
||||
|
||||
it("should respect CLAWDBOT_SESSION_CACHE_TTL_MS=0 to disable cache", async () => {
|
||||
process.env.CLAWDBOT_SESSION_CACHE_TTL_MS = "0";
|
||||
it("should respect OPENCLAW_SESSION_CACHE_TTL_MS=0 to disable cache", async () => {
|
||||
process.env.OPENCLAW_SESSION_CACHE_TTL_MS = "0";
|
||||
clearSessionStoreCacheForTest();
|
||||
|
||||
const testStore: Record<string, SessionEntry> = {
|
||||
|
||||
Reference in New Issue
Block a user