From fac56a56165b3b00a4817cde01f79b18c671c7aa Mon Sep 17 00:00:00 2001 From: Chao Wang Date: Mon, 17 Jun 2024 17:38:49 +0800 Subject: [PATCH] fix conflict --- pkg/server/conn.go | 1 + pkg/server/tests/servertestkit/testkit.go | 4 ---- pkg/server/tests/tidb_test.go | 12 ------------ 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/pkg/server/conn.go b/pkg/server/conn.go index 140c93b305db3..4a315a3999cdd 100644 --- a/pkg/server/conn.go +++ b/pkg/server/conn.go @@ -98,6 +98,7 @@ import ( "github.com/pingcap/tidb/pkg/util/dbterror/exeerrors" "github.com/pingcap/tidb/pkg/util/execdetails" "github.com/pingcap/tidb/pkg/util/hack" + "github.com/pingcap/tidb/pkg/util/intest" "github.com/pingcap/tidb/pkg/util/logutil" "github.com/pingcap/tidb/pkg/util/memory" "github.com/pingcap/tidb/pkg/util/resourcegrouptag" diff --git a/pkg/server/tests/servertestkit/testkit.go b/pkg/server/tests/servertestkit/testkit.go index c110debe8f102..cda0ac2bb9d8d 100644 --- a/pkg/server/tests/servertestkit/testkit.go +++ b/pkg/server/tests/servertestkit/testkit.go @@ -69,10 +69,6 @@ func CreateTidbTestSuiteWithCfg(t *testing.T, cfg *config.Config) *TidbTestSuite ts.Domain, err = session.BootstrapSession(ts.Store) require.NoError(t, err) ts.Tidbdrv = srv.NewTiDBDriver(ts.Store) -<<<<<<< HEAD -======= - ->>>>>>> 72d22d60fca (privilege: fix `auth_socket` bug, should only allow os user name to login (#54032)) srv.RunInGoTestChan = make(chan struct{}) server, err := srv.NewServer(cfg, ts.Tidbdrv) require.NoError(t, err) diff --git a/pkg/server/tests/tidb_test.go b/pkg/server/tests/tidb_test.go index 79ea81742439c..4fbc55ed14371 100644 --- a/pkg/server/tests/tidb_test.go +++ b/pkg/server/tests/tidb_test.go @@ -31,10 +31,6 @@ import ( "net/http" "os" "path/filepath" -<<<<<<< HEAD:pkg/server/tests/tidb_test.go -======= - "runtime" ->>>>>>> 72d22d60fca (privilege: fix `auth_socket` bug, should only allow os user name to login (#54032)):pkg/server/tests/commontest/tidb_test.go "strings" "sync" "sync/atomic" @@ -3148,13 +3144,6 @@ func TestConnectionCount(t *testing.T) { ts := servertestkit.CreateTidbTestSuite(t) ts.RunTestConnectionCount(t) } -<<<<<<< HEAD:pkg/server/tests/tidb_test.go -======= - -func TestTypeAndCharsetOfSendLongData(t *testing.T) { - ts := servertestkit.CreateTidbTestSuite(t) - ts.RunTestTypeAndCharsetOfSendLongData(t) -} func TestAuthSocket(t *testing.T) { defer server2.ClearOSUserForAuthSocket() @@ -3224,4 +3213,3 @@ func TestAuthSocket(t *testing.T) { ts.CheckRows(t, rows, "u2@%") }) } ->>>>>>> 72d22d60fca (privilege: fix `auth_socket` bug, should only allow os user name to login (#54032)):pkg/server/tests/commontest/tidb_test.go