summaryrefslogtreecommitdiff
path: root/docProps_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'docProps_test.go')
-rw-r--r--docProps_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/docProps_test.go b/docProps_test.go
index 40ae2dc..df1b6c6 100644
--- a/docProps_test.go
+++ b/docProps_test.go
@@ -44,6 +44,7 @@ func TestSetDocProps(t *testing.T) {
assert.NoError(t, f.SaveAs(filepath.Join("test", "TestSetDocProps.xlsx")))
f.Pkg.Store("docProps/core.xml", nil)
assert.NoError(t, f.SetDocProps(&DocProperties{}))
+ assert.NoError(t, f.Close())
// Test unsupported charset
f = NewFile()
@@ -62,6 +63,7 @@ func TestGetDocProps(t *testing.T) {
f.Pkg.Store("docProps/core.xml", nil)
_, err = f.GetDocProps()
assert.NoError(t, err)
+ assert.NoError(t, f.Close())
// Test unsupported charset
f = NewFile()