diff --git a/tests/integrations/mcs/testutil.go b/tests/integrations/mcs/testutil.go index e4e8804ac53..da23d2fe7f2 100644 --- a/tests/integrations/mcs/testutil.go +++ b/tests/integrations/mcs/testutil.go @@ -34,6 +34,7 @@ import ( var once sync.Once +// InitLogger initializes the logger for test. func InitLogger(cfg *tso.Config) (err error) { once.Do(func() { // Setup the logger. @@ -100,6 +101,7 @@ func StartSingleTSOTestServer(ctx context.Context, re *require.Assertions, backe return s, cleanup } +// NewTSOTestServer creates a tso server with given config for testing. func NewTSOTestServer(ctx context.Context, cfg *tso.Config) (*tso.Server, testutil.CleanupFunc, error) { s := tso.CreateServer(ctx, cfg) if err := s.Run(); err != nil {