From a9837f90aa9b6c4417302250ee9ab2155aaa829d Mon Sep 17 00:00:00 2001 From: Mike Bland Date: Thu, 2 Apr 2015 21:06:37 -0400 Subject: [PATCH] Ensure TestNewReverseProxy() passes when offline This reflects the apparent intent of TestNewReverseProxy(). Without this change, the test will fail when run without an Internet connection. --- oauthproxy_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oauthproxy_test.go b/oauthproxy_test.go index 2a89dbe..635a249 100644 --- a/oauthproxy_test.go +++ b/oauthproxy_test.go @@ -18,8 +18,7 @@ func TestNewReverseProxy(t *testing.T) { defer backend.Close() backendURL, _ := url.Parse(backend.URL) - backendHostname := "upstream.127.0.0.1.xip.io" - _, backendPort, _ := net.SplitHostPort(backendURL.Host) + backendHostname, backendPort, _ := net.SplitHostPort(backendURL.Host) backendHost := net.JoinHostPort(backendHostname, backendPort) proxyURL, _ := url.Parse(backendURL.Scheme + "://" + backendHost + "/")