revert: drop Umami concurrency change

This commit is contained in:
ajnart committed 2026-08-22 09:06:11 +02:00
1 parent 7a56a7d74f
commit bfb834e087
2 files changed
+17 -21

No files matched your search

@@ -172,7 +172,7 @@ describe("UmamiIntegration", () => {
expect(result[0]?.dataPoints.reduce((sum, point) => sum + point.y, 0)).toBe(20 * PAGE_SIZE);
});
test("requests event series with bounded concurrency", async () => {
test("requests event series one at a time", async () => {
let inFlight = 0;
let maxInFlight = 0;
mockFetch.mockImplementation(async () => {
@@ -186,11 +186,14 @@ describe("UmamiIntegration", () => {
}) as unknown as Awaited<ReturnType<typeof fetchWithTrustedCertificatesAsync>>;
});
const eventNames = ["signup", "purchase", "refund", "login", "logout", "download"];
const result = await createIntegration().getMultiEventTimeSeriesAsync(WEBSITE_ID, "24h", eventNames);
const result = await createIntegration().getMultiEventTimeSeriesAsync(WEBSITE_ID, "24h", [
"signup",
"purchase",
"refund",
]);
expect(result.map(({ eventName }) => eventName)).toEqual(eventNames);
expect(maxInFlight).toBe(4);
expect(result).toHaveLength(3);
expect(maxInFlight).toBe(1);
});
});
});