mirror of
https://github.com/stashapp/stash.git
synced 2026-02-13 02:42:37 +01:00
Fix concurrent test timeout
This commit is contained in:
parent
646f8bc02e
commit
5e332514fa
1 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ func waitForOtherThread(c chan struct{}) error {
|
|||
func TestConcurrentReadTxn(t *testing.T) {
|
||||
var wg sync.WaitGroup
|
||||
ctx := context.Background()
|
||||
c := make(chan struct{}, 1)
|
||||
c := make(chan struct{})
|
||||
|
||||
// first thread
|
||||
wg.Add(2)
|
||||
|
|
@ -155,7 +155,7 @@ func TestConcurrentReadTxn(t *testing.T) {
|
|||
func TestConcurrentExclusiveAndReadTxn(t *testing.T) {
|
||||
var wg sync.WaitGroup
|
||||
ctx := context.Background()
|
||||
c := make(chan struct{}, 1)
|
||||
c := make(chan struct{})
|
||||
|
||||
// first thread
|
||||
wg.Add(2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue