diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-08-02 15:37:26 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-08-02 15:37:26 +0100 |
commit | fbaef42cc52a91630d169343def9b5a98800bfcf (patch) | |
tree | 1487074d19dbd8968aa50fb744ea2e455409fd05 | |
parent | cbb3eb9fe49d36f8a48f8059de783da15472e289 (diff) |
tidied test
-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 c4807c8..319544c 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.Fatalf("Unable to write datamap to database file because %v.", err) |