Commit 0f21006c authored by Alessio Caiazza's avatar Alessio Caiazza Committed by Catalin Irimie

Change order of geo endpoint check condition

parent ea5869cc
...@@ -59,7 +59,7 @@ func RequireResponseHeader(t *testing.T, w interface{}, header string, expected ...@@ -59,7 +59,7 @@ func RequireResponseHeader(t *testing.T, w interface{}, header string, expected
// handle Geo API polling request as well. // handle Geo API polling request as well.
func TestServerWithHandler(url *regexp.Regexp, handler http.HandlerFunc) *httptest.Server { func TestServerWithHandler(url *regexp.Regexp, handler http.HandlerFunc) *httptest.Server {
return TestServerWithHandlerWithGeoPolling(url, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return TestServerWithHandlerWithGeoPolling(url, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if geoProxyEndpointPath == r.URL.Path { if r.URL.Path == geoProxyEndpointPath {
return return
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment