diff --git a/internal/httpproxy/handler_test.go b/internal/httpproxy/handler_test.go new file mode 100644 index 00000000..7eadc960 --- /dev/null +++ b/internal/httpproxy/handler_test.go @@ -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) +}