mirror of https://github.com/langgenius/dify.git
Merge remote-tracking branch 'origin/main' into refactor/app/components/app/text-generate/item/index.tsx-and-add-test
This commit is contained in:
commit
1b8f184177
|
|
@ -452,9 +452,9 @@ describe('fetchWithRetry extended', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should retry specified number of times', async () => {
|
it('should retry specified number of times', async () => {
|
||||||
let attempts = 0
|
let _attempts = 0
|
||||||
const failingPromise = () => {
|
const failingPromise = () => {
|
||||||
attempts++
|
_attempts++
|
||||||
return Promise.reject(new Error('fail'))
|
return Promise.reject(new Error('fail'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue