perf: trim web auto-reply test cleanup backoff
This commit is contained in:
parent
1c7a099b6d
commit
34eb14d24f
@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -35,7 +35,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -79,7 +79,7 @@ const makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -38,7 +38,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -82,7 +82,7 @@ const _makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -37,7 +37,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -81,7 +81,7 @@ const _makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -34,7 +34,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -78,7 +78,7 @@ const makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -35,7 +35,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
@ -79,7 +79,7 @@ const makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
@ -78,7 +78,7 @@ const _makeSessionStore = async (
|
||||
? String((err as { code?: unknown }).code)
|
||||
: null;
|
||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
continue;
|
||||
}
|
||||
throw err;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user