From 3165f279af9b648848d40300fcca90c90cf95d6e Mon Sep 17 00:00:00 2001 From: akuma06 Date: Sun, 16 Jul 2017 00:23:11 +0200 Subject: [PATCH] Fixing test issue --- controllers/template_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/template_test.go b/controllers/template_test.go index 4b81e98c..edaceade 100644 --- a/controllers/template_test.go +++ b/controllers/template_test.go @@ -140,7 +140,6 @@ func walkDirTest(dir string, t *testing.T) { fmt.Printf("\nTesting Folder: %s\n", dir) view := jet.NewHTMLSet(path.Join("..", TemplateDir)) - vars := mockupCommonVars(t) files, err := ioutil.ReadDir(path.Join("..", TemplateDir) + dir) if err != nil { t.Errorf("Couldn't find the folder %s", path.Join("..", TemplateDir)+dir) @@ -149,6 +148,7 @@ func walkDirTest(dir string, t *testing.T) { t.Errorf("Couldn't find any files in folder %s", path.Join("..", TemplateDir)+dir) } for _, f := range files { + vars := mockupCommonVars(t) if f.IsDir() { walkDirTest(dir+f.Name()+"/", t) continue