Migrate FileInfo store to Sync by default (#10837)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
99ea780f20
Коммит
beb7592c93
@@ -91,7 +91,7 @@ func BenchmarkUploadFile(b *testing.B) {
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
<-th.App.Srv.Store.FileInfo().PermanentDelete(info1.Id)
|
||||
th.App.Srv.Store.FileInfo().PermanentDelete(info1.Id)
|
||||
th.App.RemoveFile(info1.Path)
|
||||
|
||||
},
|
||||
@@ -110,7 +110,7 @@ func BenchmarkUploadFile(b *testing.B) {
|
||||
if aerr != nil {
|
||||
b.Fatal(aerr)
|
||||
}
|
||||
<-th.App.Srv.Store.FileInfo().PermanentDelete(info.Id)
|
||||
th.App.Srv.Store.FileInfo().PermanentDelete(info.Id)
|
||||
th.App.RemoveFile(info.Path)
|
||||
},
|
||||
},
|
||||
@@ -128,7 +128,7 @@ func BenchmarkUploadFile(b *testing.B) {
|
||||
if aerr != nil {
|
||||
b.Fatal(aerr)
|
||||
}
|
||||
<-th.App.Srv.Store.FileInfo().PermanentDelete(info.Id)
|
||||
th.App.Srv.Store.FileInfo().PermanentDelete(info.Id)
|
||||
th.App.RemoveFile(info.Path)
|
||||
},
|
||||
},
|
||||
@@ -143,7 +143,7 @@ func BenchmarkUploadFile(b *testing.B) {
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
<-th.App.Srv.Store.FileInfo().PermanentDelete(resp.FileInfos[0].Id)
|
||||
th.App.Srv.Store.FileInfo().PermanentDelete(resp.FileInfos[0].Id)
|
||||
th.App.RemoveFile(resp.FileInfos[0].Path)
|
||||
},
|
||||
},
|
||||
@@ -160,7 +160,7 @@ func BenchmarkUploadFile(b *testing.B) {
|
||||
if aerr != nil {
|
||||
b.Fatal(aerr)
|
||||
}
|
||||
<-th.App.Srv.Store.FileInfo().PermanentDelete(info.Id)
|
||||
th.App.Srv.Store.FileInfo().PermanentDelete(info.Id)
|
||||
th.App.RemoveFile(info.Path)
|
||||
},
|
||||
},
|
||||
@@ -177,7 +177,7 @@ func BenchmarkUploadFile(b *testing.B) {
|
||||
if aerr != nil {
|
||||
b.Fatal(aerr)
|
||||
}
|
||||
<-th.App.Srv.Store.FileInfo().PermanentDelete(info.Id)
|
||||
th.App.Srv.Store.FileInfo().PermanentDelete(info.Id)
|
||||
th.App.RemoveFile(info.Path)
|
||||
},
|
||||
},
|
||||
|
||||
Ссылка в новой задаче
Block a user