integration.BeforeTest can be run without leak-detection.
This commit is contained in:
@ -1288,16 +1288,8 @@ type ClusterV3 struct {
|
||||
// for each cluster member.
|
||||
func NewClusterV3(t testutil.TB, cfg *ClusterConfig) *ClusterV3 {
|
||||
t.Helper()
|
||||
testutil.SkipTestIfShortMode(t, "Cannot create clusters in --short tests")
|
||||
|
||||
wd, err := os.Getwd()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !strings.HasPrefix(wd, os.TempDir()) {
|
||||
t.Errorf("Working directory '%s' expected to be in temp-dir ('%s')."+
|
||||
"Have you executed integration.BeforeTest(t) ?", wd, os.TempDir())
|
||||
}
|
||||
assertInTestContext(t)
|
||||
|
||||
cfg.UseGRPC = true
|
||||
|
||||
|
Reference in New Issue
Block a user