-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tsm: add TestCache_CacheTestCommitLock
A test to check that the commit lock is working as expected. In particular, we want to check that if there is a pending commit, a prepare issued by a concurrent goroutine will block until such time as the current holder of the lock either commits or rolls back. This test also checks that concurrent writes into the cache are not prevented by goroutines that hold the cache's commit lock. Signed-off-by: Jon Seymour <jon@wildducktheories.com>
- Loading branch information
1 parent
c8796d9
commit 80e97b4
Showing
1 changed file
with
73 additions
and
0 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