# Duplicate order after retry test report

> Read a local test report for a checkout request delivered twice. Compare the resulting order count and verify the business request keeps its identity.

Source: https://cueapril.com/reports/retry-duplicates-order
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## Does the customer end up with two orders when a response is delayed?

The original implementation failed the “Repeated delivery” check. Expected 1 and observed 2. The corrected implementation met both expectations on the same inputs.

A replay of the same checkout request creates one order. Compare two versions of a small, runnable fixture. The inputs, expected values and recorded results are public.

## What the control case missed

The ordinary path sees one incoming request and one order. Replaying the same business request produces two transport deliveries with different delivery IDs. Counting those deliveries gives two orders for one checkout.

Observed values from the two implementations

| Check | Expected | Original | Corrected |
| --- | --- | --- | --- |
| Single delivery | 1 | 1 | 1 |
| Repeated delivery | 1 | 2 | 1 |

## What to check before merging

Carry the idempotency key through the storage operation. A Set makes the uniqueness rule visible here. In a full system also exercise concurrent submissions and the database constraint that makes the operation atomic.

## Reproduce the recorded result

Download the [Node.js fixture](/examples/qa-regressions/run.mjs) and run node run.mjs retry-duplicates-order with Node.js 24. Compare the printed JSON with the [recorded results](/examples/qa-regressions/results.json). This is a locally executed model of the regression, using synthetic inputs. It covers the rule shown here. Hosted runs, browser behaviour and customer PRs require their own evidence.

## Primary documentation

- [Runnable synthetic regression fixtures](/examples/qa-regressions/run.mjs)
- [Recorded output for all twelve fixtures](/examples/qa-regressions/results.json)

By Cue April. Updated 2026-12-01.

## Related

- [Worked test reports](https://cueapril.com/reports): Replay a real mobile pricing defect from a Cue April pull request. Explore runnable reports for checkout, search, data migrations and other regressions.
- [Pull request testing](https://cueapril.com/use-cases/pull-request-testing): See what a pull request test report should show before you merge. Follow a failing checkout check through the fix and inspect a real PR report.
