fix(examples): remove legacy retry rejection
This commit is contained in:
@@ -76,16 +76,6 @@ async function withIsolatedSkillHomes<T>(run: () => Promise<T>): Promise<T> {
|
||||
}
|
||||
|
||||
describe('dsh-acp-demo composition', () => {
|
||||
it('rejects app-level llmRetry config through plugin validation', async () => {
|
||||
const ctx = new Context()
|
||||
await expect(ctx.plugin(acpAgent, {
|
||||
provider: 'mock',
|
||||
model: 'mock',
|
||||
workspaceContext: false,
|
||||
llmRetry: { maxTransientRetries: 2 },
|
||||
} as never)).rejects.toThrow(/llmRetry/)
|
||||
})
|
||||
|
||||
it('brings up the spine + persistence + the ACP bridge', async () => {
|
||||
const ctx = await mount({
|
||||
provider: 'mock',
|
||||
|
||||
@@ -208,19 +208,6 @@ describe.skipIf(!existsSync(acpBin))('dsh-acp-demo BUILT bin (node lib/bin.js, n
|
||||
expect(stderr).toContain('config file not found')
|
||||
}, 30_000)
|
||||
|
||||
it('rejects legacy app-level llmRetry through the published Loader path', async () => {
|
||||
consumer = await makeConsumer()
|
||||
const configPath = join(consumer, 'cordis.yml')
|
||||
const config = await readFile(configPath, 'utf8')
|
||||
await writeFile(configPath, config.replace(
|
||||
' workspaceContext: false',
|
||||
' workspaceContext: false\n llmRetry:\n maxTransientRetries: 2',
|
||||
))
|
||||
|
||||
const { code, stderr } = await runBinExpectingExit('./cordis.yml', consumer)
|
||||
expect(code).not.toBe(0)
|
||||
expect(stderr).toContain('llmRetry')
|
||||
}, 30_000)
|
||||
})
|
||||
|
||||
/** Spawn the built acp bin against `configArg` and resolve with its exit code + stderr. */
|
||||
|
||||
Reference in New Issue
Block a user