Fix concurrent test timeout

This commit is contained in:
WithoutPants
2022-11-30 09:25:12 +11:00
parent 646f8bc02e
commit 5e332514fa

View File

@@ -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)