gluetun/internal/httpproxy/handler_test.go

17 lines
232 B
Go

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)
}