Skip to content

Commit

Permalink
wip, timeouts attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
M4tteoP committed Aug 9, 2024
1 parent 7bd957d commit 8900a75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions testing/coreruleset/albedo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type reflectionSpec struct {
}

func handleReflect(t testing.TB, w http.ResponseWriter, r *http.Request) {
t.Helper()
log.Println("Received reflection request")

body, err := io.ReadAll(r.Body)
Expand Down
1 change: 1 addition & 0 deletions testing/coreruleset/coreruleset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ SecRule REQUEST_HEADERS:X-CRS-Test "@rx ^.*$" \
res, err := runner.Run(cfg, tests, runner.RunnerConfig{
ShowTime: false,
ConnectTimeout: 10 * time.Second, // WIP: Defaults to 3s but looks to be not enough
ReadTimeout: 10 * time.Second,
}, output.NewOutput("quiet", os.Stdout))
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 8900a75

Please sign in to comment.