Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky test in
ExecutorBoltSchedulerTest
Fixed the flaky test in `ExecutorBoltSchedulerTest#createdWorkerThreadsShouldContainConnectorName` due to thread race condition. The test requires `ExecutorBoltScheduler#executeBatch` to be finished before the test verification code. While before the test could only ensure `BoltConnection#processNextBatch` finishes. ``` try { return connection.processNextBatch(); // before the test only ensure this line finished } finally { currentThread.setName( originalName ); // we need this to be also finished too } ```
- Loading branch information