fix: ds_proxy test not initiating header

This commit is contained in:
Torkel Ödegaard
2018-08-14 09:18:04 +02:00
parent 2459b177f9
commit 4f704cec53

View File

@@ -219,7 +219,7 @@ func TestDSRouteRule(t *testing.T) {
proxy := NewDataSourceProxy(ds, plugin, ctx, "/render")
requestURL, _ := url.Parse("http://grafana.com/sub")
req := http.Request{URL: requestURL}
req := http.Request{URL: requestURL, Header: http.Header{}}
proxy.getDirector()(&req)
@@ -244,7 +244,7 @@ func TestDSRouteRule(t *testing.T) {
proxy := NewDataSourceProxy(ds, plugin, ctx, "")
requestURL, _ := url.Parse("http://grafana.com/sub")
req := http.Request{URL: requestURL}
req := http.Request{URL: requestURL, Header: http.Header{}}
proxy.getDirector()(&req)