Add user storage test

This commit is contained in:
Ken-Håvard Lieng 2016-01-07 23:59:38 +01:00
parent 0c5b4bb04e
commit 137cf3224d
6 changed files with 105 additions and 33 deletions

View file

@ -20,9 +20,8 @@ func TestMain(m *testing.M) {
log.Fatal(err)
}
storage.SetDirectory(tempdir)
os.MkdirAll(storage.Path.Logs(), 0700)
storage.Initialize()
storage.Initialize(tempdir)
storage.Open()
user = storage.NewUser("uuid")
channelStore = storage.NewChannelStore()