perf: trim web auto-reply test cleanup backoff

This commit is contained in:
Peter Steinberger
2026-02-13 19:19:11 +00:00
parent 1c7a099b6d
commit 34eb14d24f
12 changed files with 23 additions and 23 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;