Browse Source

consensus: add leaktest check to replay tests (#8185)

master
Sam Kleinman 2 years ago
committed by GitHub
parent
commit
cbce877480
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      internal/consensus/replay_test.go

+ 7
- 0
internal/consensus/replay_test.go View File

@ -12,6 +12,7 @@ import (
"testing"
"time"
"github.com/fortytw2/leaktest"
"github.com/gogo/protobuf/proto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@ -594,6 +595,8 @@ func TestHandshakeReplayAll(t *testing.T) {
sim := setupSimulator(ctx, t)
t.Cleanup(leaktest.Check(t))
for _, m := range modes {
testHandshakeReplay(ctx, t, sim, 0, m, false)
}
@ -609,6 +612,8 @@ func TestHandshakeReplaySome(t *testing.T) {
sim := setupSimulator(ctx, t)
t.Cleanup(leaktest.Check(t))
for _, m := range modes {
testHandshakeReplay(ctx, t, sim, 2, m, false)
}
@ -639,6 +644,8 @@ func TestHandshakeReplayNone(t *testing.T) {
sim := setupSimulator(ctx, t)
t.Cleanup(leaktest.Check(t))
for _, m := range modes {
testHandshakeReplay(ctx, t, sim, numBlocks, m, false)
}


Loading…
Cancel
Save