chore(httpproxy): add Test_returnRedirect to prevent error wrap of ErrUseLastResponse
This commit is contained in:
16
internal/httpproxy/handler_test.go
Normal file
16
internal/httpproxy/handler_test.go
Normal 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)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user