From 5e332514fab0c900f80d8d5fbcf60f35b75617a4 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Wed, 30 Nov 2022 09:25:12 +1100 Subject: [PATCH] Fix concurrent test timeout --- pkg/sqlite/transaction_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sqlite/transaction_test.go b/pkg/sqlite/transaction_test.go index 8904ba7d4..00aa9c2de 100644 --- a/pkg/sqlite/transaction_test.go +++ b/pkg/sqlite/transaction_test.go @@ -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)