Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit e1e5230

Browse files
author
Julio Guerra
committed
backend/api: fix broken test
1 parent 7d72ab4 commit e1e5230

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/backend/api/json_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func TestCustomScrubber(t *testing.T) {
162162
}
163163
buf, err := json.Marshal(&winfo)
164164
require.NoError(t, err)
165-
winfoJSONStr := string(buf)
165+
winfoJSON := buf
166166

167167
rr := &api.RequestRecord{
168168
Request: api.RequestRecord_Request{
@@ -176,7 +176,7 @@ func TestCustomScrubber(t *testing.T) {
176176
Observed: api.RequestRecord_Observed{
177177
Attacks: []*api.RequestRecord_Observed_Attack{
178178
{
179-
Info: api.WAFAttackInfo{WAFData: winfoJSONStr},
179+
Info: api.WAFAttackInfo{WAFData: winfoJSON},
180180
},
181181
},
182182
},

0 commit comments

Comments
 (0)