mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 19:34:29 +00:00
test: remove 247 low-value tests, including 22 suites (#36857)
* test: remove low-value suites and cases * test: update wall-clock ratchet after low-value test removals
This commit is contained in:
@@ -16,16 +16,6 @@ const snapshot = {
|
||||
}
|
||||
|
||||
describe('OpenCode execution-host primary-agent context', () => {
|
||||
it('uses the resolved first selectable primary and leaves absent identity unknown', () => {
|
||||
expect(parseOpenCodeLaunchModelContext(snapshot)).toEqual({ primaryAgent: 'build' })
|
||||
expect(
|
||||
parseOpenCodeLaunchModelContext({
|
||||
...snapshot,
|
||||
agents: { location: { directory }, data: [] }
|
||||
})
|
||||
).toBeNull()
|
||||
})
|
||||
|
||||
it('uses recorded 2.0.19 resolved agents without inventing stale or disabled primaries', () => {
|
||||
for (const capture of recordedCases) {
|
||||
const original = JSON.parse(capture.configContent)
|
||||
@@ -73,23 +63,6 @@ describe('OpenCode execution-host primary-agent context', () => {
|
||||
}
|
||||
})
|
||||
|
||||
it('tolerates absent model fields and unrelated agent records', () => {
|
||||
expect(
|
||||
parseOpenCodeLaunchModelContext({
|
||||
...snapshot,
|
||||
agents: {
|
||||
location: { directory },
|
||||
data: [
|
||||
{ unrelated: true },
|
||||
{ id: 'hidden', hidden: true },
|
||||
{ id: 'child', mode: 'subagent' },
|
||||
{ id: 'reviewer', mode: 'primary', model: null }
|
||||
]
|
||||
}
|
||||
})
|
||||
).toEqual({ primaryAgent: 'reviewer' })
|
||||
})
|
||||
|
||||
it('never uses primary-agent data from a foreign location', () => {
|
||||
expect(
|
||||
parseOpenCodeLaunchModelContext({
|
||||
|
||||
Reference in New Issue
Block a user