summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/template_funcs_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/tplimpl/template_funcs_test.go')
-rw-r--r--tpl/tplimpl/template_funcs_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tpl/tplimpl/template_funcs_test.go b/tpl/tplimpl/template_funcs_test.go
index c142dd672..67e957924 100644
--- a/tpl/tplimpl/template_funcs_test.go
+++ b/tpl/tplimpl/template_funcs_test.go
@@ -98,6 +98,7 @@ func TestTemplateFuncsExamples(t *testing.T) {
depsCfg := newDepsConfig(v)
depsCfg.Fs = fs
d, err := deps.New(depsCfg)
+ defer d.Close()
c.Assert(err, qt.IsNil)
var data struct {
@@ -163,6 +164,7 @@ func TestPartialCached(t *testing.T) {
de, err := deps.New(config)
c.Assert(err, qt.IsNil)
+ defer de.Close()
c.Assert(de.LoadResources(), qt.IsNil)
ns := partials.New(de)
@@ -216,6 +218,7 @@ func doBenchmarkPartial(b *testing.B, f func(ns *partials.Namespace) error) {
de, err := deps.New(config)
c.Assert(err, qt.IsNil)
+ defer de.Close()
c.Assert(de.LoadResources(), qt.IsNil)
ns := partials.New(de)