mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Fix concurrent test timeout
This commit is contained in:
@@ -80,7 +80,7 @@ func waitForOtherThread(c chan struct{}) error {
|
|||||||
func TestConcurrentReadTxn(t *testing.T) {
|
func TestConcurrentReadTxn(t *testing.T) {
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
c := make(chan struct{}, 1)
|
c := make(chan struct{})
|
||||||
|
|
||||||
// first thread
|
// first thread
|
||||||
wg.Add(2)
|
wg.Add(2)
|
||||||
@@ -155,7 +155,7 @@ func TestConcurrentReadTxn(t *testing.T) {
|
|||||||
func TestConcurrentExclusiveAndReadTxn(t *testing.T) {
|
func TestConcurrentExclusiveAndReadTxn(t *testing.T) {
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
c := make(chan struct{}, 1)
|
c := make(chan struct{})
|
||||||
|
|
||||||
// first thread
|
// first thread
|
||||||
wg.Add(2)
|
wg.Add(2)
|
||||||
|
|||||||
Reference in New Issue
Block a user