mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-03 15:27:56 +01:00
test(autoplan): use a model id with no price row for the unpriced-spend-cap case (claude-haiku-5-5 is priced now)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
2543cfb884
commit
386a71baf0
1 file changed
+1
-1
@@ -205,7 +205,7 @@ describe('gstack-autoplan run --native-runner api --runner api', () => {
|
||||
mode = 'ok';
|
||||
calls = 0;
|
||||
const kind = ['GSTACK', 'SESSION', 'KIND'].join('_');
|
||||
const r = await run('unpriced', ['--spend-cap', '1'], { ANTHROPIC_API_KEY: 'ak-test', OPENAI_API_KEY: 'sk-test', [kind]: 'spawned' }, 'anthropic/claude-haiku-5-5');
|
||||
const r = await run('unpriced', ['--spend-cap', '1'], { ANTHROPIC_API_KEY: 'ak-test', OPENAI_API_KEY: 'sk-test', [kind]: 'spawned' }, 'anthropic/claude-unpriced-test-0');
|
||||
expect(r.status).toBe(3);
|
||||
expect(r.stdout + r.stderr).toContain('SPEND_CAP_EXCEEDED');
|
||||
expect(calls).toBe(0);
|
||||
|
||||
Reference in new issue
Block a user