diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-08-01 19:16:48 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-08-01 19:17:16 +0100 |
commit | add51ef91b96e604c00b447f58d5df5fa638b90e (patch) | |
tree | ed81a01fb21fe60f40c551a27108d3cf04a1d6b2 /pkg/datamaps/writer_test.go | |
parent | 52cc2c420d0b9f2a3e46769db2bb532a46700452 (diff) |
fixed extraneous variable
Diffstat (limited to 'pkg/datamaps/writer_test.go')
-rw-r--r-- | pkg/datamaps/writer_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
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) |