fix tests on CI

This commit is contained in:
sqshq 2019-08-03 17:14:49 -04:00
parent 5b1c615740
commit 04f50ea149
1 changed files with 7 additions and 0 deletions

View File

@ -14,10 +14,13 @@ type f struct {
func Test_fileExists(t *testing.T) {
initStorage()
_, err := os.Create(getPlatformStoragePath("exists"))
if err != nil {
panic(err)
}
defer os.Remove(getPlatformStoragePath("exists"))
type args struct {
@ -42,6 +45,8 @@ func Test_fileExists(t *testing.T) {
func Test_saveStorageFile(t *testing.T) {
initStorage()
file, _ := yaml.Marshal(f{a: 1})
name := "test"
@ -56,6 +61,8 @@ func Test_saveStorageFile(t *testing.T) {
func Test_readStorageFile(t *testing.T) {
initStorage()
file, _ := yaml.Marshal(f{a: 1})
name := "test"