Skip to content

Commit 52fff9f

Browse files
committed
a couple of tweaks and test updates
1 parent 6f172cd commit 52fff9f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

internal-packages/run-engine/src/engine/tests/getSnapshotsSince.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ describe("RunEngine getSnapshotsSince", () => {
213213

214214
// The latest snapshot should have completedWaitpoints
215215
const latest = result![result!.length - 1];
216-
expect(latest.completedWaitpoints.length).toBeGreaterThanOrEqual(0);
216+
expect(latest.completedWaitpoints.length).toBeGreaterThan(0);
217217

218218
// Earlier snapshots should have empty waitpoints (optimization)
219219
for (let i = 0; i < result!.length - 1; i++) {

internal-packages/run-engine/src/engine/tests/helpers/snapshotTestHelpers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,9 @@ export async function setupTestScenario(
287287
checkpoints.push({ id: checkpoint.id });
288288
}
289289

290-
// Increment attempt number when entering EXECUTING
291-
if (config.status === "EXECUTING" || config.status === "PENDING_EXECUTING") {
290+
// Increment attempt number when entering a new execution attempt
291+
// PENDING_EXECUTING is the entry point - EXECUTING follows within the same attempt
292+
if (config.status === "PENDING_EXECUTING") {
292293
attemptNumber++;
293294
}
294295

0 commit comments

Comments
 (0)