From 92928f25a877e1c8b3b6b8f9c3178b9f69bdd433 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:53:17 +0100 Subject: [PATCH] test(mepmpool): increase TestTxMempool_OneRecheckTxAtTime timeout --- internal/mempool/mempool_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/mempool/mempool_test.go b/internal/mempool/mempool_test.go index e8d8c858a..c69526746 100644 --- a/internal/mempool/mempool_test.go +++ b/internal/mempool/mempool_test.go @@ -800,7 +800,7 @@ func TestTxMempool_OneRecheckTxAtTime(t *testing.T) { mp.recheckTransactions(ctx) assert.Eventually(t, func() bool { return checkTxCounter.Load() == uint32(numRecheckTasks) }, - 100*time.Millisecond, 5*time.Millisecond, + 200*time.Millisecond, 10*time.Millisecond, "1st run: processed %d txs, expected %d", checkTxCounter.Load(), numRecheckTasks) // another recheck should cancel the first run and start from the beginning , but pending checkTx ops should finish @@ -809,7 +809,7 @@ func TestTxMempool_OneRecheckTxAtTime(t *testing.T) { recheckTxBlocker.Unlock() // Ensure that all goroutines/tasks have finished assert.Eventually(t, func() bool { return runtime.NumGoroutine() == goroutines }, - 100*time.Millisecond, 5*time.Millisecond, + 500*time.Millisecond, 10*time.Millisecond, "not all goroutines finished on time") // here we expect to have processed `numRecheckTasks` during first run, and `numTxs` during 2nd run