Merge pull request #115 from BaaRai/fix/escalation-test-signature

fix(test): escalation test to the ctx-aware hooks.current signature
This commit is contained in:
BaaRai 2026-10-21 15:20:16 +02:00 • committed by GitHub
commit 4dcba3d07e

View file

@ -27,7 +27,7 @@ func TestEscalationAdvancesAfterConsecutiveFailures(t *testing.T) {
nextProfile := int64(8)
exhaustCalls := 0
hooks := taskLLMStreamHooks{
current: func() (taskLLMSelection, error) {
current: func(ctx context.Context) (taskLLMSelection, error) {
return taskLLMSelection{task: &Task{ID: "1"}, profileID: profile, revision: 1, provider: prov}, nil
},
exhaust: func(sel taskLLMSelection, cause error) (db.TaskLLMTransition, error) {