Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ut: Patch get_ident for race transaction test
In case eventlet is installed on the system, the time.sleep() function doesn't yield. This patch replaces time.sleep with eventlet.sleep and thread.get_ident functions on systems with eventlet installed. With this patch, a concurrent transaction test can be executed both with and without eventlet successfuly. Change-Id: I4572355d7d420111e562d4d1f4ea3dd95d4e3f7d Related-bug: #1793499
- Loading branch information
Showing
1 changed file
with
24 additions
and
4 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