diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2020-05-21 21:59:33 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2020-05-21 21:59:33 -0400 |
| commit | d954aa2edae91009fcc0b0eea5e622958a8d8b67 (patch) | |
| tree | e373b2a70045db608777cfd2accae6a4c36ec77d /context_test.go | |
| parent | cea6c6ec234198ece9155077672193229d5093b7 (diff) | |
Deprecate legacy config struct
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'context_test.go')
| -rw-r--r-- | context_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/context_test.go b/context_test.go index 94f2b51b..287376cb 100644 --- a/context_test.go +++ b/context_test.go @@ -43,7 +43,7 @@ func TestCreateContext(t *testing.T) { } os.Setenv("foo", "foo: bar") defer os.Unsetenv("foo") - c, err = createTmplContext(ctx, map[string]config.DSConfig{"foo": {URL: uf}}, d) + c, err = createTmplContext(ctx, map[string]config.DataSource{"foo": {URL: uf}}, d) assert.NoError(t, err) assert.IsType(t, &tmplctx{}, c) tctx := c.(*tmplctx) @@ -52,7 +52,7 @@ func TestCreateContext(t *testing.T) { os.Setenv("bar", "bar: baz") defer os.Unsetenv("bar") - c, err = createTmplContext(ctx, map[string]config.DSConfig{".": {URL: ub}}, d) + c, err = createTmplContext(ctx, map[string]config.DataSource{".": {URL: ub}}, d) assert.NoError(t, err) assert.IsType(t, map[string]interface{}{}, c) ds = c.(map[string]interface{}) |
