这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Lazar955
Copy link
Member

@Lazar955 Lazar955 commented Jul 17, 2025

Better housekeeping, remove methods used in test from FPI, less noise

Copilot AI review requested due to automatic review settings July 17, 2025 08:13
Copy link
Contributor

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

This pull request refactors testing utilities by moving helper methods from the finality provider instance to a dedicated test helper struct. The purpose is to better organize test-related functionality and separate it from production code.

  • Creates a new FinalityProviderTestHelper struct to encapsulate testing utilities
  • Moves test helper methods from FinalityProviderInstance to the dedicated test helper
  • Updates all callers to use the new test helper interface

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
finality-provider/service/fp_test_helper.go New file containing the FinalityProviderTestHelper struct with moved test utility methods
finality-provider/service/fp_instance.go Removes test helper methods and adds factory method for creating test helper instances
finality-provider/service/rpcserver.go Updates to use new test helper interface for finality signature submission
finality-provider/cmd/fpd/daemon/commit_pr.go Updates to use new test helper interface for public randomness commitment
itest/babylon/babylon_e2e_test.go Updates test calls to use new test helper interface

@Lazar955 Lazar955 requested a review from KonradStaniec July 17, 2025 08:15
@Lazar955 Lazar955 requested a review from SebastianElvis July 17, 2025 08:40
@Lazar955 Lazar955 merged commit 2855659 into main Jul 17, 2025
18 checks passed
@Lazar955 Lazar955 deleted the lazar/cleanup-helpers branch July 17, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants