test: fix resolution paths for acpClient, topic-policy, and update golden files

This commit is contained in:
mkorwel
2026-04-16 00:21:25 +00:00
parent 2b0007ab53
commit f31d959095
4 changed files with 4 additions and 4 deletions
@@ -14,7 +14,7 @@ import { UPDATE_TOPIC_TOOL_NAME } from '../tools/tool-names.js';
describe('Topic Tool Policy', () => {
async function loadDefaultPolicies() {
// Path relative to packages/core root
const policiesDir = path.resolve(process.cwd(), 'src/policy/policies');
const policiesDir = path.resolve(__dirname, 'policies');
const getPolicyTier = () => 1; // Default tier
const result = await loadPoliciesFromToml([policiesDir], getPolicyTier);
return result.rules;
@@ -261,4 +261,4 @@
"model": "gemini-3-flash-preview",
"generateContentConfig": {}
}
}
}
@@ -261,4 +261,4 @@
"model": "gemini-3-flash-preview",
"generateContentConfig": {}
}
}
}