Skip to content

Conversation

@ChrisJBurns
Copy link
Collaborator

@ChrisJBurns ChrisJBurns commented Oct 13, 2025

The test is using assert.Equal() to directly compare tool slices, which requires exact order matching. However, the tools in the response can come in any order (likely from map iteration), causing intermittent failures.

Using an assert.ElementsMatch() should allow us to match regardless of order

The test is using assert.Equal() to directly compare
tool slices, which requires exact order matching. However, the tools in the response can
come in any order (likely from map iteration), causing intermittent failures.

Using an assert.ElementsMatch should allow us to match regardless of
order

Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
@ChrisJBurns ChrisJBurns enabled auto-merge (squash) October 13, 2025 19:18
@codecov
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.72%. Comparing base (53d0b4e) to head (7fcc13e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2180      +/-   ##
==========================================
+ Coverage   52.67%   52.72%   +0.04%     
==========================================
  Files         223      223              
  Lines       29037    29037              
==========================================
+ Hits        15296    15310      +14     
+ Misses      12605    12586      -19     
- Partials     1136     1141       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ChrisJBurns ChrisJBurns merged commit 9eabf44 into main Oct 13, 2025
26 checks passed
@ChrisJBurns ChrisJBurns deleted the fixes-flaky-order-assertion branch October 13, 2025 19:44
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