mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-07 20:40:44 +00:00
Add leaktest to concurrency test.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user