Chore: Refactor quota service (#57586)
* Chore: refactore quota service * Apply suggestions from code review
This commit is contained in:
committed by
GitHub
parent
faa0fda6eb
commit
326ea86a57
@@ -118,7 +118,7 @@ func setupUploadStore(t *testing.T, authService storageAuthService) (StorageServ
|
||||
store.cfg = &GlobalStorageConfig{
|
||||
AllowUnsanitizedSvgUpload: true,
|
||||
}
|
||||
store.quotaService = quotatest.NewQuotaServiceFake()
|
||||
store.quotaService = quotatest.New(false, nil)
|
||||
|
||||
return store, mockStorage, storageName
|
||||
}
|
||||
@@ -297,7 +297,7 @@ func TestContentRootWithNestedStorage(t *testing.T) {
|
||||
store.cfg = &GlobalStorageConfig{
|
||||
AllowUnsanitizedSvgUpload: true,
|
||||
}
|
||||
store.quotaService = quotatest.NewQuotaServiceFake()
|
||||
store.quotaService = quotatest.New(false, nil)
|
||||
fileName := "file.jpg"
|
||||
|
||||
tests := []struct {
|
||||
|
||||
Reference in New Issue
Block a user