Skip to content

test: fix intermittent failures#692

Merged
ricellis merged 1 commit intomainfrom
s1167-follower-teststart
Jun 12, 2025
Merged

test: fix intermittent failures#692
ricellis merged 1 commit intomainfrom
s1167-follower-teststart

Conversation

@ricellis
Copy link
Copy Markdown
Member

PR summary

Fix intermittent failures in ChangesFollowerTest testStart and testStop

Fixes: s1167

Note: An existing issue is required before opening a PR.

PR Checklist

Please make sure that your PR fulfills the following requirements:

  • The commit message follows the
    Angular Commit Message Guidelines.
  • Tests for the changes have been added (for bug fixes / features) - test fix
  • Docs have been added / updated (for bug fixes / features) - N/A test only

PR Type

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • New tests
  • Build/CI related changes
  • Documentation content changes
  • Other (please describe) - test fix

What is the current behavior?

The test intermittently fails when 2 batches have been received, but not 3.
The assertion is written to expect at least 2 batches + 1 change, but the way changes are processed means this is equivalent to asserting 3 full batches received, where it is clear from the comment we expect on constrained test agents to be only into the third batch.

What is the new behavior?

Assert at least 2 complete batches processed count >= 2*ChangesFollower.BATCH_SIZE.
This makes the assertion match the expected behaviour.
Also change the assertion message to help with any future failures.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Update assertions and assert message in
ChangesFollowerTest testStart and testStop
to validate 2 batches received.
@ricellis ricellis self-assigned this Jun 11, 2025
@ricellis ricellis merged commit eb9b507 into main Jun 12, 2025
8 checks passed
@ricellis ricellis deleted the s1167-follower-teststart branch June 12, 2025 09:18
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