Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition in
DebeziumMessProducerTests
The `then(debeziumEngineMock).should().run()` cannot be just checked after `debeziumMessageProducer.start()`: the `DebeziumEngine` is really started on a separate thread. * Check for a `run()` interaction with the mock already after calling `debeziumMessageProducer.stop()`. The `stop()` waits for an internal `latch` which is fulfilled when `DebeziumEngine` exists from its `run()` cycle * Rename `DebeziumMessageProducer.latch` to `lifecycleLatch` to give it more sense.
- Loading branch information
1 parent
c24d10c
commit e9f7780
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters