From d954aa2edae91009fcc0b0eea5e622958a8d8b67 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Thu, 21 May 2020 21:59:33 -0400 Subject: Deprecate legacy config struct Signed-off-by: Dave Henderson --- context_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'context_test.go') 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{}) -- cgit v1.2.3