diff options
-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) |