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:
Benjamin Wang
2022-10-26 14:30:47 +08:00
parent 8ce81a1624
commit 42cfb74b4c
5 changed files with 38 additions and 4 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -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()