Skip to content

Fix copy-paste bug in MessageGroupLateArrivalsTest assertion#1680

Merged
jbonofre merged 1 commit intoapache:mainfrom
jeanouii:fix/MessageGroupLateArrivalsTest
Feb 13, 2026
Merged

Fix copy-paste bug in MessageGroupLateArrivalsTest assertion#1680
jbonofre merged 1 commit intoapache:mainfrom
jeanouii:fix/MessageGroupLateArrivalsTest

Conversation

@jeanouii
Copy link
Contributor

testConsumerLateToBigPartyGetsNewGroup had two errors on line 220:

  1. Checked messageCount.get("worker1") instead of "worker2"
  2. Expected 2*perBatch (4) instead of perBatch (2)

testConsumerLateToBigPartyGetsNewGroup had two errors on line 220:
   1. Checked messageCount.get("worker1") instead of "worker2"
   2. Expected 2*perBatch (4) instead of perBatch (2)
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 fixes a copy-paste bug in the testConsumerLateToBigPartyGetsNewGroup test method where an assertion for worker2 was incorrectly checking worker1's message count and using the wrong expected value.

Changes:

  • Corrected line 220 to check messageCount.get("worker2") instead of messageCount.get("worker1")
  • Corrected the expected message count from 2*perBatch (4) to perBatch (2) for worker2

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

Copy link
Member

@jbonofre jbonofre left a comment

Choose a reason for hiding this comment

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

Good catch !

@jbonofre jbonofre merged commit ffb10c8 into apache:main Feb 13, 2026
16 checks passed
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.

2 participants