mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
chore(httpproxy): add Test_returnRedirect to prevent error wrap of ErrUseLastResponse
This commit is contained in:
@@ -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