mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: define a default WithAuth to resolve error Unresolved reference 'WithAuth' from IDE
Signed-off-by: Benjamin Wang <wachao@vmware.com>
This commit is contained in:
@@ -16,7 +16,7 @@ package framework
|
||||
|
||||
var (
|
||||
// UnitTestRunner only runs in `--short` mode, will fail otherwise. Attempts in cluster creation will result in tests being skipped.
|
||||
UnitTestRunner testRunner = unitRunner{}
|
||||
UnitTestRunner TestRunner = unitRunner{}
|
||||
// E2eTestRunner runs etcd and etcdctl binaries in a separate process.
|
||||
E2eTestRunner = e2eRunner{}
|
||||
// IntegrationTestRunner runs etcdserver.EtcdServer in separate goroutine and uses client libraries to communicate.
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"go.etcd.io/etcd/tests/v3/framework/config"
|
||||
)
|
||||
|
||||
type testRunner interface {
|
||||
type TestRunner interface {
|
||||
TestMain(m *testing.M)
|
||||
BeforeTest(testing.TB)
|
||||
NewCluster(context.Context, testing.TB, config.ClusterConfig) Cluster
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
type unitRunner struct{}
|
||||
|
||||
var _ testRunner = (*unitRunner)(nil)
|
||||
var _ TestRunner = (*unitRunner)(nil)
|
||||
|
||||
func (e unitRunner) TestMain(m *testing.M) {
|
||||
flag.Parse()
|
||||
|
||||
Reference in New Issue
Block a user