diff options
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{}) |
