Skip to content

Add optimistic locking conflict test #12

Description

@fleuronvilik

Objective

Validate version-based concurrency behavior in PartnerInventory updates.

Scope

  • Add a conflict test where two writes contend on the same version.
  • Assert typed error and consistent final state.

Acceptance Criteria

  • Conflict scenario is reproducible in tests.
  • Failure is explicit and typed (no generic Exception/ValueError).
  • No silent overwrite occurs.

Why

Concurrency safety is a core backend skill and prevents subtle data corruption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    concurrencyConcurrency and consistencylearning-highHigh learning valuetestTesting improvementstest-gapMissing or weak test coverageweek-2Planned for week 2

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions