Integration tests: Use BeforeTest(t) instead of defer AfterTest().
Thanks to this change, a single method BeforeTest(t) can handle before-test logic as well as registration of cleanup code (t.Cleanup(func)).
This commit is contained in:
@ -16,9 +16,10 @@ package clientv3_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
|
||||
"go.etcd.io/etcd/client/v3"
|
||||
"go.etcd.io/etcd/pkg/v3/transport"
|
||||
"log"
|
||||
)
|
||||
|
||||
func mockConfig_insecure() {}
|
||||
|
Reference in New Issue
Block a user