test: drain heartbeat execution before cleanup

This commit is contained in:
Dotta committed 2026-07-11 01:56:37 +00:00
1 parent 08089e7ef3
commit 6c67a5b000
1 file changed
+1
@@ -219,6 +219,7 @@ describeEmbeddedPostgres("heartbeat bounded retry scheduling", () => {
expect(failedRun?.status).toBe("failed");
expect(failedRun?.errorCode).toBe("provider_quota");
expect((failedRun?.resultJson as Record<string, unknown> | null)?.errorFamily).toBe("provider_quota");
await heartbeat.waitForRunExecutionDrain(run!.id);
await expect
.poll(