From a54bd4e20beab48c03dc61ed44b3de211f330f31 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Wed, 25 Feb 2015 16:01:06 -0800 Subject: [PATCH] Don't modify URL passed into test code --- cmd/influxd/server_integration_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/influxd/server_integration_test.go b/cmd/influxd/server_integration_test.go index 4406f0e56d..646d150891 100644 --- a/cmd/influxd/server_integration_test.go +++ b/cmd/influxd/server_integration_test.go @@ -32,9 +32,10 @@ const ( // urlFor returns a URL with the path and query params correctly appended and set. func urlFor(u *url.URL, path string, params url.Values) *url.URL { - u.Path = path - u.RawQuery = params.Encode() - return u + v, _ := url.Parse(u.String()) + v.Path = path + v.RawQuery = params.Encode() + return v } // node represents a node under test, which is both a broker and data node.