Skip to content

Commit 6f868be

Browse files
gnoackcopybara-github
authored andcommitted
e2etesting/setup: Make ComponentsInfo private (not needed) #cleanup
PiperOrigin-RevId: 612749665
1 parent bc231b8 commit 6f868be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fleetspeak/src/e2etesting/setup/setup_components.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ type serverInfo struct {
3333
httpsListenPort int
3434
}
3535

36-
// ComponentsInfo contains IDs of connected clients and exec.Cmds for all components
37-
type ComponentsInfo struct {
36+
// componentsInfo contains IDs of connected clients and exec.Cmds for all components
37+
type componentsInfo struct {
3838
masterServerCmd *exec.Cmd
3939
balancerCmd *exec.Cmd
4040
servers []serverInfo
@@ -43,7 +43,7 @@ type ComponentsInfo struct {
4343
}
4444

4545
// killAll kills all running processes
46-
func (cc *ComponentsInfo) killAll() {
46+
func (cc *componentsInfo) killAll() {
4747
for _, cl := range cc.clientCmds {
4848
if cl != nil {
4949
cl.Process.Kill()
@@ -355,7 +355,7 @@ func BuildConfigurations(configDir string, serverHosts []string, serverFrontendI
355355
return nil
356356
}
357357

358-
func (cc *ComponentsInfo) start(configDir string, frontendAddress, msAddress string, numServers, numClients int) error {
358+
func (cc *componentsInfo) start(configDir string, frontendAddress, msAddress string, numServers, numClients int) error {
359359
firstAdminPort := 6061
360360

361361
// Start Master server
@@ -444,7 +444,7 @@ func ConfigureAndStart(t *testing.T, mysqlCredentials MysqlCredentials, frontend
444444
t.Fatalf("Failed to build base Fleetspeak configuration: %v", err)
445445
}
446446

447-
cc := ComponentsInfo{}
447+
cc := componentsInfo{}
448448
err = cc.start(configDir, frontendAddress, msAddress, numServers, numClients)
449449
if err != nil {
450450
cc.killAll()

0 commit comments

Comments
 (0)