Skip to content

Gitparse test: Decreased MaxDiffSize in gitparse TestMaxDiffSize() function #4240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nabeelalam
Copy link
Contributor

Description:

The gitparse TestMaxDiffSize() test creates a diff for testing purposes based on the default MaxDiffSize of the parser which is 2GB, which was exceeding the test timeout of 10 seconds and failing.
This updates the test, by initializing the parser with the max diff of 1MB, so the test finishes significantly faster.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@nabeelalam nabeelalam self-assigned this Jun 17, 2025
@nabeelalam nabeelalam requested review from a team as code owners June 17, 2025 11:24
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