Skip to content

[CONTRACT] Add tests for RateLimitExceeded error variant in status updates #610

Description

@dinahmaccodes

Tier: Medium

Description: Add tests for status update rate limiting and validate the RateLimitExceeded error.

Tasks:

  • Update status multiple times within rate limit window
  • Verify RateLimitExceeded error (code 21)
  • Wait for window and retry

Acceptance Criteria:

  • Rate limit is enforced
  • Error variant is returned correctly
  • Updates succeed after window expires

Files: contracts/shipment/src/test.rs, contracts/shipment/src/rate_limit.rs


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions