chore: add quota usage e2e tests (#2438)
* chore: add quota usage e2e tests * chore: add moving from shared to shared vault quota e2e test * chore: fix test suite name * chore: fix awaiting for notifications to propagate * chore: fix awaiting for notifications processing
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
export async function uploadFile(fileService, buffer, name, ext, chunkSize, vault) {
|
||||
const operation = await fileService.beginNewFileUpload(buffer.byteLength, vault)
|
||||
export async function uploadFile(fileService, buffer, name, ext, chunkSize, vault, options = {}) {
|
||||
const byteLength = options.byteLengthOverwrite || buffer.byteLength
|
||||
const operation = await fileService.beginNewFileUpload(byteLength, vault)
|
||||
if (isClientDisplayableError(operation)) {
|
||||
return operation
|
||||
}
|
||||
|
||||
let chunkId = 1
|
||||
for (let i = 0; i < buffer.length; i += chunkSize) {
|
||||
|
||||
Reference in New Issue
Block a user