Skip to content

fix(claimer): update tests to use repotest builders#767

Merged
mpolitzer merged 1 commit intonext/2.0from
fix/claimer-update-tests
Mar 23, 2026
Merged

fix(claimer): update tests to use repotest builders#767
mpolitzer merged 1 commit intonext/2.0from
fix/claimer-update-tests

Conversation

@mpolitzer
Copy link

@mpolitzer mpolitzer commented Mar 20, 2026

closes #756

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates claimer unit tests to use repotest model builders and extends the repotest epoch builder API to support setting an outputs merkle root.

Changes:

  • Added EpochBuilder.WithOutputsMerkleRoot to set Epoch.OutputsMerkleRoot.
  • Refactored internal/claimer/claimer_test.go fixtures to construct Application/Epoch via repotest builders instead of manual struct literals.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
internal/repository/repotest/builders.go Adds an epoch builder setter for OutputsMerkleRoot to support tests and reduce direct struct wiring.
internal/claimer/claimer_test.go Migrates test fixtures to repotest builders for more consistent setup and reduced boilerplate.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mpolitzer mpolitzer force-pushed the fix/claimer-update-tests branch from 4357a2f to 67950ce Compare March 20, 2026 15:38
@mpolitzer mpolitzer self-assigned this Mar 20, 2026
@mpolitzer mpolitzer added this to the 2.0.0 milestone Mar 20, 2026
@github-project-automation github-project-automation bot moved this from Todo to Waiting Merge in Rollups SDK Mar 23, 2026
@mpolitzer mpolitzer force-pushed the fix/claimer-update-tests branch from 67950ce to cc066a0 Compare March 23, 2026 13:58
@mpolitzer mpolitzer merged commit cc066a0 into next/2.0 Mar 23, 2026
8 checks passed
@mpolitzer mpolitzer deleted the fix/claimer-update-tests branch March 23, 2026 14:09
@github-project-automation github-project-automation bot moved this from Waiting Merge to Done in Rollups SDK Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

refactor tests to use repotest internal/repository/repotest/builders.go

3 participants