Skip to content

Miscellaneous test fixes#22129

Merged
gnodet merged 5 commits intoapache:mainfrom
gnodet:misc-test-fixes
Mar 20, 2026
Merged

Miscellaneous test fixes#22129
gnodet merged 5 commits intoapache:mainfrom
gnodet:misc-test-fixes

Conversation

@gnodet
Copy link
Contributor

@gnodet gnodet commented Mar 20, 2026

Miscellaneous test fixes:

  • camel-hazelcast: Fix flaky HazelcastQueueConsumerPollTest by replacing fragile mock stubbing with a thread-safe LinkedBlockingQueue backing, so poll() behaves realistically regardless of consumer timing
  • camel-netty-http: Fix NettyHttpSSLHandshakeErrorTest to accept SSLHandshakeException wrapped in DecoderException, which Netty may do depending on timing

- Disable flaky LogCaptureTest in camel-netty and camel-netty-http
- Remove unnecessary (Object) cast on constant(null) calls
- Disable flaky HazelcastQueueConsumerPollTest on CI
- Remove deprecated StorageBackend.COUCHSTORE from CouchbaseIntegrationTestBase

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

gnodet and others added 4 commits March 20, 2026 06:32
…ption wrapping

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…nTestBase, and .thenReturn(null)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The consumer's background thread starts polling queue.poll() during
context startup, but the Mockito stub was only set up in the test
method — after the consumer was already polling. This is a Mockito
thread-safety race (concurrent stubbing and invocation).

Fix: set up queue.poll() mock in trainHazelcastInstance() (before
context start) using an Answer backed by a LinkedBlockingQueue.
Tests put items into the backing queue, which is fully thread-safe.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet marked this pull request as ready for review March 20, 2026 06:15
@gnodet gnodet merged commit fd5bc44 into apache:main Mar 20, 2026
5 checks passed
@gnodet gnodet deleted the misc-test-fixes branch March 20, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants