integration.BeforeTest can be run without leak-detection.

This commit is contained in:
Piotr Tabor
2021-05-27 18:44:14 +02:00
parent b3f16d6691
commit 3f13d3a2d5
13 changed files with 116 additions and 37 deletions

View File

@ -17,6 +17,7 @@ package connectivity_test
import (
"bytes"
"context"
"fmt"
"testing"
"time"
@ -243,8 +244,10 @@ func TestBalancerUnderServerStopInflightLinearizableGetOnRestart(t *testing.T) {
{pinLeader: false, stopPinFirst: true},
{pinLeader: false, stopPinFirst: false},
}
for i := range tt {
testBalancerUnderServerStopInflightRangeOnRestart(t, true, tt[i])
for _, w := range tt {
t.Run(fmt.Sprintf("%#v", w), func(t *testing.T) {
testBalancerUnderServerStopInflightRangeOnRestart(t, true, w)
})
}
}
@ -255,8 +258,10 @@ func TestBalancerUnderServerStopInflightSerializableGetOnRestart(t *testing.T) {
{pinLeader: false, stopPinFirst: true},
{pinLeader: false, stopPinFirst: false},
}
for i := range tt {
testBalancerUnderServerStopInflightRangeOnRestart(t, false, tt[i])
for _, w := range tt {
t.Run(fmt.Sprintf("%#v", w), func(t *testing.T) {
testBalancerUnderServerStopInflightRangeOnRestart(t, false, w)
})
}
}