integration.BeforeTest can be run without leak-detection.

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

View File

@ -37,7 +37,7 @@ func NewClient(t *testing.T, cfg Config) (*Client, error) {
}
func TestDialCancel(t *testing.T) {
testutil.BeforeTest(t)
testutil.RegisterLeakDetection(t)
// accept first connection so client is created with dial timeout
ln, err := net.Listen("unix", "dialcancel:12345")
@ -89,7 +89,7 @@ func TestDialCancel(t *testing.T) {
}
func TestDialTimeout(t *testing.T) {
testutil.BeforeTest(t)
testutil.RegisterLeakDetection(t)
wantError := context.DeadlineExceeded