Skip to content

fix: use assert.Positive instead of assert.Greater with 0 in testifylint#23910

Merged
pelikhan merged 1 commit intomainfrom
copilot/fix-lint-issues
Apr 1, 2026
Merged

fix: use assert.Positive instead of assert.Greater with 0 in testifylint#23910
pelikhan merged 1 commit intomainfrom
copilot/fix-lint-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

CI lint was failing due to a testifylint violation in pkg/workflow/error_aggregation_test.go.

Change

Replace assert.Greater(t, collector.Count(), 0, ...) with the idiomatic assert.Positive(t, collector.Count(), ...):

// Before
assert.Greater(t, collector.Count(), 0, "Should have errors")

// After
assert.Positive(t, collector.Count(), "Should have errors")

@pelikhan pelikhan marked this pull request as ready for review April 1, 2026 14:40
Copilot AI review requested due to automatic review settings April 1, 2026 14:40
@pelikhan pelikhan merged commit b5a9fb0 into main Apr 1, 2026
52 checks passed
@pelikhan pelikhan deleted the copilot/fix-lint-issues branch April 1, 2026 14:41
Copy link
Copy Markdown
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 PR resolves a CI lint failure from testifylint by replacing a non-idiomatic numeric assertion with the preferred testify/assert helper.

Changes:

  • Replace assert.Greater(..., 0, ...) with assert.Positive(...) in TestErrorCollectorAdd_Aggregate.

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

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