Skip to content
Snippets Groups Projects
Commit e8898c23 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: disable default timeout for file import states

refs tank#86
parent cdbb21f9
Branches
Tags
No related merge requests found
Pipeline #8990 passed
Pipeline: aura-tests

#8991

    ......@@ -54,7 +54,7 @@ function APIUpload(api: ExtendableAPI<TankFile>, pendingImportFileIds: Ref<Set<T
    requiredState: 'running' | 'done',
    options: { signal?: AbortSignal | null; maxWaitTimeSeconds?: number } | undefined = undefined,
    ) {
    const maxWaitTimeSeconds = options?.maxWaitTimeSeconds ?? 5 * 60
    const maxWaitTimeSeconds = options?.maxWaitTimeSeconds ?? Number.POSITIVE_INFINITY
    const startTime = new Date().getTime() / 1000
    let waitTime = 0
    ......@@ -88,7 +88,7 @@ function APIUpload(api: ExtendableAPI<TankFile>, pendingImportFileIds: Ref<Set<T
    }
    }
    throw new TimeoutError('Maximum wait time passed')
    throw new TimeoutError('Maximum wait time for file import state reached.')
    }
    function _uploadFile(
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment