@@ -102,7 +102,7 @@ func TestReadConfig(t *testing.T) {
102102 },
103103 envProxy : "socks5://other.proxy.com:9999" ,
104104 want : & config {
105- Endpoint : "https://example.com" ,
105+ Endpoint : "https://example.com" ,
106106 EndpointURL : & url.URL {
107107 Scheme : "https" ,
108108 Host : "example.com" ,
@@ -128,7 +128,7 @@ func TestReadConfig(t *testing.T) {
128128 envEndpoint : "https://override.com" ,
129129 envProxy : "socks5://other.proxy.com:9999" ,
130130 want : & config {
131- Endpoint : "https://override.com" ,
131+ Endpoint : "https://override.com" ,
132132 EndpointURL : & url.URL {
133133 Scheme : "https" ,
134134 Host : "override.com" ,
@@ -147,7 +147,7 @@ func TestReadConfig(t *testing.T) {
147147 name : "no config file, token from environment" ,
148148 envToken : "abc" ,
149149 want : & config {
150- Endpoint : "https://sourcegraph.com" ,
150+ Endpoint : "https://sourcegraph.com" ,
151151 EndpointURL : & url.URL {
152152 Scheme : "https" ,
153153 Host : "sourcegraph.com" ,
@@ -160,7 +160,7 @@ func TestReadConfig(t *testing.T) {
160160 name : "no config file, endpoint from environment" ,
161161 envEndpoint : "https://example.com" ,
162162 want : & config {
163- Endpoint : "https://example.com" ,
163+ Endpoint : "https://example.com" ,
164164 EndpointURL : & url.URL {
165165 Scheme : "https" ,
166166 Host : "example.com" ,
@@ -173,7 +173,7 @@ func TestReadConfig(t *testing.T) {
173173 name : "no config file, proxy from environment" ,
174174 envProxy : "https://proxy.com:8080" ,
175175 want : & config {
176- Endpoint : "https://sourcegraph.com" ,
176+ Endpoint : "https://sourcegraph.com" ,
177177 EndpointURL : & url.URL {
178178 Scheme : "https" ,
179179 Host : "sourcegraph.com" ,
@@ -194,7 +194,7 @@ func TestReadConfig(t *testing.T) {
194194 envToken : "abc" ,
195195 envProxy : "https://proxy.com:8080" ,
196196 want : & config {
197- Endpoint : "https://example.com" ,
197+ Endpoint : "https://example.com" ,
198198 EndpointURL : & url.URL {
199199 Scheme : "https" ,
200200 Host : "example.com" ,
@@ -213,7 +213,7 @@ func TestReadConfig(t *testing.T) {
213213 name : "UNIX Domain Socket proxy using scheme and absolute path" ,
214214 envProxy : "unix://" + socketPath ,
215215 want : & config {
216- Endpoint : "https://sourcegraph.com" ,
216+ Endpoint : "https://sourcegraph.com" ,
217217 EndpointURL : & url.URL {
218218 Scheme : "https" ,
219219 Host : "sourcegraph.com" ,
@@ -228,7 +228,7 @@ func TestReadConfig(t *testing.T) {
228228 name : "UNIX Domain Socket proxy with absolute path" ,
229229 envProxy : socketPath ,
230230 want : & config {
231- Endpoint : "https://sourcegraph.com" ,
231+ Endpoint : "https://sourcegraph.com" ,
232232 EndpointURL : & url.URL {
233233 Scheme : "https" ,
234234 Host : "sourcegraph.com" ,
@@ -243,7 +243,7 @@ func TestReadConfig(t *testing.T) {
243243 name : "socks --> socks5" ,
244244 envProxy : "socks://localhost:1080" ,
245245 want : & config {
246- Endpoint : "https://sourcegraph.com" ,
246+ Endpoint : "https://sourcegraph.com" ,
247247 EndpointURL : & url.URL {
248248 Scheme : "https" ,
249249 Host : "sourcegraph.com" ,
@@ -261,7 +261,7 @@ func TestReadConfig(t *testing.T) {
261261 name : "socks5h" ,
262262 envProxy : "socks5h://localhost:1080" ,
263263 want : & config {
264- Endpoint : "https://sourcegraph.com" ,
264+ Endpoint : "https://sourcegraph.com" ,
265265 EndpointURL : & url.URL {
266266 Scheme : "https" ,
267267 Host : "sourcegraph.com" ,
@@ -284,7 +284,7 @@ func TestReadConfig(t *testing.T) {
284284 AdditionalHeaders : map [string ]string {},
285285 },
286286 want : & config {
287- Endpoint : "https://override.com" ,
287+ Endpoint : "https://override.com" ,
288288 EndpointURL : & url.URL {
289289 Scheme : "https" ,
290290 Host : "override.com" ,
@@ -299,7 +299,7 @@ func TestReadConfig(t *testing.T) {
299299 envEndpoint : "https://example.com" ,
300300 envToken : "abc" ,
301301 want : & config {
302- Endpoint : "https://override.com" ,
302+ Endpoint : "https://override.com" ,
303303 EndpointURL : & url.URL {
304304 Scheme : "https" ,
305305 Host : "override.com" ,
@@ -315,7 +315,7 @@ func TestReadConfig(t *testing.T) {
315315 envToken : "abc" ,
316316 envFooHeader : "bar" ,
317317 want : & config {
318- Endpoint : "https://override.com" ,
318+ Endpoint : "https://override.com" ,
319319 EndpointURL : & url.URL {
320320 Scheme : "https" ,
321321 Host : "override.com" ,
@@ -331,7 +331,7 @@ func TestReadConfig(t *testing.T) {
331331 envToken : "abc" ,
332332 envHeaders : "foo:bar\n foo-bar:bar-baz" ,
333333 want : & config {
334- Endpoint : "https://override.com" ,
334+ Endpoint : "https://override.com" ,
335335 EndpointURL : & url.URL {
336336 Scheme : "https" ,
337337 Host : "override.com" ,
0 commit comments