Edit fixture repair budgets structurally
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/testsupport/promptfixture"
|
||||
"io"
|
||||
"io/fs"
|
||||
"net/http"
|
||||
@@ -277,7 +278,7 @@ func newProcessFixture(t *testing.T, mode, modules string) processFixture {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
data = append(data, []byte(" repair_attempts: 0\n")...)
|
||||
data = promptfixture.WithRepairAttempts(t, data, 0)
|
||||
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