Skip to content

Commit fab7a1f

Browse files
committed
try to reduce test flake with slower mock image upload
1 parent 44ad2c8 commit fab7a1f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/forms/image-upload.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ export function Component() {
536536
await onSubmit(values)
537537
} catch (e) {
538538
if (e !== ABORT_ERROR) {
539+
console.error(e)
539540
setModalError('Something went wrong. Please try again.')
540541
}
541542
cancelEverything()

mock-api/msw/handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export const handlers = makeHandlers({
218218
const disk = lookup.disk({ ...path, ...query })
219219
const diskImport = db.diskBulkImportState.get(disk.id)
220220
if (!diskImport) throw notFoundErr(`disk import for disk '${disk.id}'`)
221-
await delay(1000) // slow it down for the tests
221+
await delay(2000) // slow it down for the tests
222222
// if (Math.random() < 0.01) throw 400
223223
diskImport.blocks[body.offset] = true
224224
return 204

0 commit comments

Comments
 (0)