Skip to content

Conversation

@aaryyya
Copy link

@aaryyya aaryyya commented Oct 31, 2025

No description provided.

@aaryyya
Copy link
Author

aaryyya commented Nov 4, 2025

@Umang01-hash kindly review.

@aaryyya aaryyya closed this Nov 4, 2025
@aaryyya aaryyya reopened this Nov 4, 2025
@Umang01-hash Umang01-hash requested a review from Copilot November 6, 2025 03:58
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

This PR refactors test code to reduce duplication by extracting common retry HTTP setup logic into a reusable helper function.

  • Introduced a newRetryHTTP() helper function to encapsulate the creation of retry HTTP instances
  • Updated 9 test functions to use the new helper instead of duplicating setup code

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

retryHTTP := retryConfig.AddOption(mockHTTP)
retryHTTP := newRetryHTTP()


Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

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

[nitpick] There are two consecutive blank lines after the helper function call. This should be reduced to a single blank line for consistency with coding style.

Suggested change

Copilot uses AI. Check for mistakes.
Comment on lines 109 to 111
retryHTTP := newRetryHTTP()


Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

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

[nitpick] There are two consecutive blank lines after the helper function call. This should be reduced to a single blank line for consistency with coding style.

Copilot uses AI. Check for mistakes.
Comment on lines 122 to 124
retryHTTP := newRetryHTTP()


Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

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

[nitpick] There are two consecutive blank lines after the helper function call. This should be reduced to a single blank line for consistency with coding style.

Copilot uses AI. Check for mistakes.
Comment on lines 136 to 138
retryHTTP := newRetryHTTP()


Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

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

[nitpick] There are two consecutive blank lines after the helper function call. This should be reduced to a single blank line for consistency with coding style.

Copilot uses AI. Check for mistakes.
Comment on lines 149 to 151
retryHTTP := newRetryHTTP()


Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

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

[nitpick] There are two consecutive blank lines after the helper function call. This should be reduced to a single blank line for consistency with coding style.

Copilot uses AI. Check for mistakes.
retryHTTP := retryConfig.AddOption(mockHTTP)
retryHTTP := newRetryHTTP()


Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

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

[nitpick] There are two consecutive blank lines after the helper function call. This should be reduced to a single blank line for consistency with coding style.

Suggested change

Copilot uses AI. Check for mistakes.
Comment on lines 200 to 202
retryHTTP := newRetryHTTP()


Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

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

[nitpick] There are two consecutive blank lines after the helper function call. This should be reduced to a single blank line for consistency with coding style.

Copilot uses AI. Check for mistakes.
retryHTTP := retryConfig.AddOption(mockHTTP)
retryHTTP := newRetryHTTP()


Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

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

[nitpick] There are two consecutive blank lines after the helper function call. This should be reduced to a single blank line for consistency with coding style.

Suggested change

Copilot uses AI. Check for mistakes.
@Umang01-hash
Copy link
Member

@aaryyya Thanks for your contribution to GoFr! Your PR is currently failing the Code Quality test in the workflow with the below message.

Screenshot 2025-11-06 at 10 20 38 AM

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