Skip to content

Commit

Permalink
*: remove useless gomod (#34107)
Browse files Browse the repository at this point in the history
ref #31716
  • Loading branch information
hawkingrei committed Jun 22, 2022
1 parent 007d64c commit 494759d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1,748 deletions.
13 changes: 8 additions & 5 deletions tests/globalkilltest/global_kill_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ var (

pdClientPath = flag.String("pd", "127.0.0.1:2379", "pd client path")

lostConnectionToPDTimeout = flag.Int("conn_lost", 5, "lost connection to PD timeout, should be the same as TiDB ldflag <ldflagLostConnectionToPDTimeout>")
// nolint: unused, deadcode
lostConnectionToPDTimeout = flag.Int("conn_lost", 5, "lost connection to PD timeout, should be the same as TiDB ldflag <ldflagLostConnectionToPDTimeout>")

// nolint: unused, deadcode
timeToCheckPDConnectionRestored = flag.Int("conn_restored", 1, "time to check PD connection restored, should be the same as TiDB ldflag <ldflagServerIDTimeToCheckPDConnectionRestored>")
)

Expand All @@ -64,7 +67,7 @@ type GlobalKillSuite struct {
pdCli *clientv3.Client
pdErr error

clusterId string
clusterID string
pdProc *exec.Cmd
tikvProc *exec.Cmd
}
Expand All @@ -74,7 +77,7 @@ func createGloabalKillSuite(t *testing.T) (s *GlobalKillSuite, clean func()) {
err := logutil.InitLogger(&logutil.LogConfig{Config: log.Config{Level: *logLevel}})
require.NoError(t, err)

s.clusterId = time.Now().Format(time.RFC3339Nano)
s.clusterID = time.Now().Format(time.RFC3339Nano)
err = s.startCluster()
require.NoError(t, err)
s.pdCli, s.pdErr = s.connectPD()
Expand Down Expand Up @@ -157,12 +160,12 @@ func (s *GlobalKillSuite) startPD(dataDir string) (err error) {
}

func (s *GlobalKillSuite) startCluster() (err error) {
err = s.startPD(s.clusterId)
err = s.startPD(s.clusterID)
if err != nil {
return
}

err = s.startTiKV(s.clusterId)
err = s.startTiKV(s.clusterID)
if err != nil {
return
}
Expand Down
46 changes: 0 additions & 46 deletions tests/globalkilltest/go.mod

This file was deleted.

Loading

0 comments on commit 494759d

Please sign in to comment.