apache / apache/bookkeeper

Cleanup `Thread.sleep` in unit tests

Open
#943 1 comment 0 reactions 0 assignees View on GitHub
area/tests help wanted triage/week-33
Dominant language
Java
Stars
2k
Forks
976
Avg merge
6d 15h
Merged PRs (30d)
7

Description

*Problem*

Currently we are using a lot of `Thread.sleep` in the unit tests, waiting for some tasks to complete execution. This pattern is very problematic, which it makes the tests unstable and non-deterministic.

*Solution*

We should try to clean up the usages of `Thread.sleep` in the unit tests. This is a master ticket for tracking this effort.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.