Skip to content

Commit

Permalink
Fixes http test
Browse files Browse the repository at this point in the history
  • Loading branch information
atkrad committed Apr 11, 2022
1 parent 5077d3c commit bb41f60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/checker/http/http_test.go
Expand Up @@ -216,7 +216,11 @@ func TestHttpRequestHeaders(t *testing.T) {
}))
defer ts.Close()

hc := New(ts.URL, WithRequestHeaders(http.Header{"Authorization": []string{"Token 123"}, "Foo": []string{"test1 test2"}}), WithExpectBodyRegex(".*Authorization=\\[Token 123\\],Foo=\\[test1 test2\\],.*"))
hc := New(
ts.URL,
WithRequestHeaders(http.Header{"Authorization": []string{"Token 123"}, "Foo": []string{"test1 test2"}}),
WithExpectBodyRegex("(.*Authorization=\\[Token 123\\].*Foo=\\[test1 test2\\].*)|(.*Foo=\\[test1 test2\\].*Authorization=\\[Token 123\\].*)"),
)
assert.Nil(t, hc.Check(context.TODO()))
}

Expand Down

0 comments on commit bb41f60

Please sign in to comment.