Skip to content

Commit b5ebaff

Browse files
committed
Fix broken test
1 parent 111ba56 commit b5ebaff

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

builder_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ package libddwaf
1010
import (
1111
"bytes"
1212
"encoding/json"
13-
"io"
1413
"maps"
1514
"net/http"
1615
"os"
@@ -318,10 +317,7 @@ func TestBuilder(t *testing.T) {
318317
resp, err := http.DefaultClient.Do(req)
319318
require.NoError(t, err)
320319
defer resp.Body.Close()
321-
require.Equal(t, http.StatusOK, resp.StatusCode, "failed to get latest release of DataDog/appsec-event-rules: %s\n%s", resp.Status, func() string {
322-
body, _ := io.ReadAll(resp.Body)
323-
return string(body)
324-
}())
320+
require.Equal(t, http.StatusOK, resp.StatusCode, "failed to get latest release of DataDog/appsec-event-rules: %s", resp.Status)
325321

326322
var release struct {
327323
TagName string `json:"tag_name"`

0 commit comments

Comments
 (0)