Migrate FileInfo store to Sync by default (#10837)

This commit is contained in:
Jesús Espino
2019-05-15 22:07:03 +02:00
committed by GitHub
parent 99ea780f20
commit beb7592c93
17 changed files with 462 additions and 459 deletions

View File

@@ -291,7 +291,7 @@ func TestPluginAPIGetFile(t *testing.T) {
info, err := th.App.DoUploadFile(uploadTime, th.BasicTeam.Id, th.BasicChannel.Id, th.BasicUser.Id, filename, fileData)
require.Nil(t, err)
defer func() {
<-th.App.Srv.Store.FileInfo().PermanentDelete(info.Id)
th.App.Srv.Store.FileInfo().PermanentDelete(info.Id)
th.App.RemoveFile(info.Path)
}()