(t *testing.T)
| 54 | } |
| 55 | |
| 56 | func TestWithAlreadyExistingSqliteFolder(t *testing.T) { |
| 57 | tmpDir := test.NewTmpDir("gotify_testwithexistingfolder") |
| 58 | defer tmpDir.Clean() |
| 59 | |
| 60 | db, err := New("sqlite3", tmpDir.Path("somepath/testdb.db"), "defaultUser", "defaultPass", 5, true) |
| 61 | assert.Nil(t, err) |
| 62 | assert.DirExists(t, tmpDir.Path("somepath")) |
| 63 | db.Close() |
| 64 | } |
| 65 | |
| 66 | func TestPanicsOnMkdirError(t *testing.T) { |
| 67 | tmpDir := test.NewTmpDir("gotify_testpanicsonmkdirerror") |