Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(tests): add kafkaProducer.flush() to seedRows helper in rerun-paginator test (#72889)

mendral-app[bot]9af1a9e50952
diff --git a/nodejs/src/cdp/rerun/rerun-paginator.service.test.ts b/nodejs/src/cdp/rerun/rerun-paginator.service.test.ts
index 21fc6b2c33af..acace17d7b84 100644
--- a/nodejs/src/cdp/rerun/rerun-paginator.service.test.ts
+++ b/nodejs/src/cdp/rerun/rerun-paginator.service.test.ts
@@ -118,6 +118,7 @@ describe('RerunPaginatorService integration', () => {
seedingService.queueLifecycleRow(invocation, r.status, { error: r.error, errorKind: r.errorKind })
}
await seedingService.flush()
+ await kafkaProducer.flush()
// Track cumulative seeded rows so calling seedRows twice in the same
// test waits for *all* rows (rather than trivially passing on the