chore(httpproxy): add Test_returnRedirect to prevent error wrap of ErrUseLastResponse

This commit is contained in:
Quentin McGaw
2023-05-29 09:44:49 +00:00
parent bfe5e4380f
commit aed235f52d

View File

@@ -0,0 +1,16 @@
package httpproxy
import (
"net/http"
"testing"
"github.com/stretchr/testify/assert"
)
func Test_returnRedirect(t *testing.T) {
t.Parallel()
err := returnRedirect(nil, nil)
assert.Equal(t, http.ErrUseLastResponse, err)
}