diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2022-05-28 19:24:48 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2022-05-28 19:49:42 -0400 |
| commit | cec23e66f9bd5022845162ae4dd3f2633b5236fa (patch) | |
| tree | f5caf83d0c92ce80942b2e7ed5e184ffb69e3c2d /data/datasource_http_test.go | |
| parent | e00015a86393e947757dea88cb82b328b35ad8b4 (diff) | |
General refactoring & cleanup
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'data/datasource_http_test.go')
| -rw-r--r-- | data/datasource_http_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/data/datasource_http_test.go b/data/datasource_http_test.go index e2c13a8f..5d279712 100644 --- a/data/datasource_http_test.go +++ b/data/datasource_http_test.go @@ -58,7 +58,7 @@ func TestHTTPFile(t *testing.T) { hc: client, } data := &Data{ - ctx: context.Background(), + Ctx: context.Background(), Sources: sources, } @@ -88,7 +88,7 @@ func TestHTTPFileWithHeaders(t *testing.T) { Path: "/foo", }, hc: client, - header: http.Header{ + Header: http.Header{ "Foo": {"bar"}, "foo": {"baz"}, "User-Agent": {}, @@ -96,7 +96,7 @@ func TestHTTPFileWithHeaders(t *testing.T) { }, } data := &Data{ - ctx: context.Background(), + Ctx: context.Background(), Sources: sources, } expected := http.Header{ @@ -113,9 +113,9 @@ func TestHTTPFileWithHeaders(t *testing.T) { "User-Agent": {"Go-http-client/1.1"}, } data = &Data{ - ctx: context.Background(), + Ctx: context.Background(), Sources: sources, - extraHeaders: map[string]http.Header{server.URL: expected}, + ExtraHeaders: map[string]http.Header{server.URL: expected}, } actual, err = data.Datasource(server.URL) assert.NoError(t, err) |
