Skip to content

Add Tests for Operator Rotation Contract Module #773

Description

@Mosas2000

Description

The operator rotation contract module has no tests. contracts/soroban/src/operator_rotation.rs is implemented but has no corresponding test file in contracts/soroban/tests/, so operator rotation handover logic is untested.

Requirements and context

  • Add an operator_rotation.test.rs covering rotation flows
  • Cover initiate, confirm, and unauthorized rotation
  • Run under cargo test
  • Follow the existing contract test conventions

Suggested execution

Fork the repo and create a branch

git checkout -b test/contract-operator-rotation

Implement changes

  • Add the operator rotation test module
  • Cover happy paths and rejection cases
  • Verify with cargo test

Example commit message

test: add tests for operator rotation contract module

Guidelines

  • Assignment required before starting
  • PR must include a closing reference to this issue
  • Timeframe: 72 hours

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
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