aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/datamaps/writer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/datamaps/writer_test.go')
-rw-r--r--pkg/datamaps/writer_test.go7
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)