From 07e0b0f2e804ecf184cdd2a1b248b36f803f4191 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Tue, 15 Feb 2022 11:40:02 -0800 Subject: [PATCH] Add leaktest to concurrency test. --- internal/eventlog/eventlog_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/eventlog/eventlog_test.go b/internal/eventlog/eventlog_test.go index ee9b727ec..b49ce52e6 100644 --- a/internal/eventlog/eventlog_test.go +++ b/internal/eventlog/eventlog_test.go @@ -10,6 +10,7 @@ import ( "testing" "time" + "github.com/fortytw2/leaktest" "github.com/google/go-cmp/cmp" "github.com/tendermint/tendermint/internal/eventlog" @@ -89,6 +90,7 @@ func TestPruneTime(t *testing.T) { // Run a publisher and concurrent subscribers to tickle the race detector with // concurrent add and scan operations. func TestConcurrent(t *testing.T) { + defer leaktest.Check(t) if testing.Short() { t.Skip("Skipping concurrency exercise because -short is set") }