Edit fixture repair budgets structurally
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/testsupport/promptfixture"
|
||||
"io"
|
||||
"io/fs"
|
||||
"net/http"
|
||||
@@ -99,7 +100,7 @@ func adapterFixtureWithPrompt(t *testing.T, replies []reply, retries, repairs in
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
data = append(data, []byte(fmt.Sprintf(" repair_attempts: %d\n", repairs))...)
|
||||
data = promptfixture.WithRepairAttempts(t, data, repairs)
|
||||
if err := os.WriteFile(filepath.Join(promptDir, filepath.Base(meta.EmbeddedPath)), data, 0600); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user