From add51ef91b96e604c00b447f58d5df5fa638b90e Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 1 Aug 2020 19:16:48 +0100 Subject: fixed extraneous variable --- pkg/datamaps/writer_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pkg/datamaps/writer_test.go') diff --git a/pkg/datamaps/writer_test.go b/pkg/datamaps/writer_test.go index 5800d1f..4be87d9 100644 --- a/pkg/datamaps/writer_test.go +++ b/pkg/datamaps/writer_test.go @@ -2,6 +2,7 @@ package datamaps import ( "os" + "path/filepath" "testing" ) @@ -27,9 +28,9 @@ func TestWriteMaster(t *testing.T) { XLSXPath: "./testdata/", } - // defer func() { - // os.Remove(filepath.Join(opts.MasterOutPutPath, "master.xlsx")) - // }() + defer func() { + os.Remove(filepath.Join(opts.MasterOutPutPath, "master.xlsx")) + }() if err := DatamapToDB(&opts); err != nil { t.Errorf("Unable to write datamap to database file because %v.", err) -- cgit v1.2.3