Skip to content
Snippets Groups Projects

Resolve "Delete the store files after the unit testing"

Merged Ghost User requested to merge 221-delete-the-store-files-after-the-unit-testing into develop
All threads resolved!
1 file
+ 9
8
Compare changes
  • Side-by-side
  • Inline
@@ -9,9 +9,13 @@ import (
"github.com/google/uuid"
)
func ensureStoreFilesForTestsAreRemoved() {
ensureStoreFileForTestsIsRemoved(store.SbiFilenameSuffix)
ensureStoreFileForTestsIsRemoved(store.DeviceFilenameSuffix)
}
func TestAddSbi(t *testing.T) {
defer ensureStoreFileForTestsIsRemoved(store.SbiFilenameSuffix)
defer ensureStoreFileForTestsIsRemoved(store.DeviceFilenameSuffix)
defer ensureStoreFilesForTestsAreRemoved()
pndID, _ := uuid.Parse("b4016412-eec5-45a1-aa29-f59915357bad")
sbiStore := NewSbiStore(pndID)
@@ -27,8 +31,7 @@ func TestAddSbi(t *testing.T) {
}
func TestGetAllSbis(t *testing.T) {
defer ensureStoreFileForTestsIsRemoved(store.SbiFilenameSuffix)
defer ensureStoreFileForTestsIsRemoved(store.DeviceFilenameSuffix)
defer ensureStoreFilesForTestsAreRemoved()
pndID, _ := uuid.Parse("b4016412-eec5-45a1-aa29-f59915357bad")
sbiStore := NewSbiStore(pndID)
@@ -66,8 +69,7 @@ func TestGetAllSbis(t *testing.T) {
}
func TestGetSbi(t *testing.T) {
defer ensureStoreFileForTestsIsRemoved(store.SbiFilenameSuffix)
defer ensureStoreFileForTestsIsRemoved(store.DeviceFilenameSuffix)
defer ensureStoreFilesForTestsAreRemoved()
pndID, _ := uuid.Parse("b4016412-eec5-45a1-aa29-f59915357bad")
@@ -99,8 +101,7 @@ func TestGetSbi(t *testing.T) {
}
func TestDeleteAllSbis(t *testing.T) {
defer ensureStoreFileForTestsIsRemoved(store.SbiFilenameSuffix)
defer ensureStoreFileForTestsIsRemoved(store.DeviceFilenameSuffix)
defer ensureStoreFilesForTestsAreRemoved()
pndID, _ := uuid.Parse("b4016412-eec5-45a1-aa29-f59915357bad")
sbiStore := NewSbiStore(pndID)
Loading