Add user storage test
This commit is contained in:
parent
0c5b4bb04e
commit
137cf3224d
6 changed files with 105 additions and 33 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue