Skip to content

[3.x] [Test] Fix flaky WireLoggerTest open/close assertion - #244

Merged
jsvd merged 1 commit into
logstash-plugins:3.xfrom
jsvd:fix-flaky-wirelogger-test-3.x
Nov 4, 2026
Merged

jsvd merged 1 commit into
logstash-plugins:3.xfrom
jsvd:fix-flaky-wirelogger-test-3.x

Conversation

@jsvd

@jsvd jsvd commented Oct 21, 2026

Copy link
Copy Markdown
Member

Backport of the main fix for flaky WireLoggerTest (clean cherry-pick). See the main PR for details.

Scheduled CI failure on 3.x: https://github.com/logstash-plugins/logstash-input-http/actions/runs/38873041213

./gradlew test --tests '*WireLoggerTest*' passes on 3.x.

🤖 Generated with Claude Code

ListAppender#getMessages returns a snapshot copy, so awaiting on the size
of a list captured once never observed the "Closing connection" message
that the server event loop logs asynchronously after the client closes.
Re-read the messages on every poll and await the actual assertions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 209e0dd)
@github-actions

Copy link
Copy Markdown
Contributor

Changelog and Version Management

No changelog or version changes detected. You can either update them manually or use a comment command to update them automatically on merge:

/pr_prepare release:<patch|minor|major> — bump version + update changelog
/pr_prepare changelog:add — changelog entry only (no version bump)

/pr_prepare release:patch
- Add the changelog entry here
  - (Additional details can be provided in multiple lines, respecting markdown formatting)

Omit the entry line to use the PR title. If multiple commands are posted, the last one wins.

@jsvd
jsvd marked this pull request as ready for review November 4, 2026 11:50
@jsvd
jsvd merged commit 4fe09e4 into logstash-plugins:3.x Nov 4, 2026
13 checks passed
@jsvd
jsvd deleted the fix-flaky-wirelogger-test-3.x branch November 4, 2026 11:53
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.

1 participant