fix(testkit): macOS compat + fix test 8c ordering (#24)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import pLimit from "p-limit";
|
||||
import pRetry from "p-retry";
|
||||
import pRetry, { AbortError } from "p-retry";
|
||||
|
||||
/**
|
||||
* Batch Processing Utilities
|
||||
@@ -75,7 +75,7 @@ export async function batchProcess<T, R>(
|
||||
if (isRateLimitError(error)) {
|
||||
throw error;
|
||||
}
|
||||
throw new pRetry.AbortError(
|
||||
throw new AbortError(
|
||||
error instanceof Error ? error : new Error(String(error))
|
||||
);
|
||||
}
|
||||
@@ -115,7 +115,7 @@ export async function batchProcessWithSSE<T, R>(
|
||||
factor: 2,
|
||||
onFailedAttempt: (error) => {
|
||||
if (!isRateLimitError(error)) {
|
||||
throw new pRetry.AbortError(
|
||||
throw new AbortError(
|
||||
error instanceof Error ? error : new Error(String(error))
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user