mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 15:59:30 +00:00
fix(test): use canonical memory fd repro config
This commit is contained in:
parent
ed2eebd31d
commit
d6ed2c392c
2 changed files with 1 additions and 6 deletions
|
|
@ -331,7 +331,6 @@ export function writeConfig({ homeDir, workspaceDir, port, token }) {
|
|||
const configDir = path.join(homeDir, ".openclaw");
|
||||
fs.mkdirSync(configDir, { recursive: true });
|
||||
const configPath = path.join(configDir, "openclaw.json");
|
||||
const indexPath = path.join(configDir, "memory", "main.sqlite");
|
||||
const config = {
|
||||
agents: {
|
||||
defaults: {
|
||||
|
|
@ -340,7 +339,6 @@ export function writeConfig({ homeDir, workspaceDir, port, token }) {
|
|||
provider: "none",
|
||||
model: "",
|
||||
store: {
|
||||
path: indexPath,
|
||||
vector: { enabled: false },
|
||||
},
|
||||
sync: {
|
||||
|
|
|
|||
|
|
@ -198,13 +198,10 @@ describe("check-memory-fd-repro", () => {
|
|||
const config = JSON.parse(fs.readFileSync(configPath, "utf8"));
|
||||
const memorySearch = config.agents.defaults.memorySearch;
|
||||
|
||||
expect(memorySearch.store).toEqual({ vector: { enabled: false } });
|
||||
expect(memorySearch).toMatchObject({
|
||||
provider: "none",
|
||||
model: "",
|
||||
store: {
|
||||
path: path.join(homeDir, ".openclaw", "memory", "main.sqlite"),
|
||||
vector: { enabled: false },
|
||||
},
|
||||
sync: {
|
||||
onSearch: false,
|
||||
onSessionStart: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue