From a035f643582e1334f54b9c9f7f176ceddb14fc7c Mon Sep 17 00:00:00 2001 From: Carlo Strub Date: Thu, 11 May 2017 18:20:36 +0000 Subject: [PATCH] remove db file after testing --- database_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/database_test.go b/database_test.go index bd07f5f..af10a29 100644 --- a/database_test.go +++ b/database_test.go @@ -1,6 +1,8 @@ package sisyphus_test import ( + "os" + "github.com/boltdb/bolt" . "github.com/carlostrub/sisyphus" @@ -41,6 +43,9 @@ var _ = Describe("Database", func() { Ω(sN).Should(Equal(0)) CloseDatabases(dbs) + + err = os.Remove("test/Maildir/sisyphus.db") + Ω(err).ShouldNot(HaveOccurred()) }) It("Closes an open database", func() { @@ -60,6 +65,9 @@ var _ = Describe("Database", func() { return nil }) Ω(err).Should(HaveOccurred()) + + err = os.Remove("test/Maildir/sisyphus.db") + Ω(err).ShouldNot(HaveOccurred()) }) }) })