Run gofmt
This commit is contained in:
parent
2f6d3c9bb2
commit
800e4f72f2
@ -52,7 +52,7 @@ func StartEmbeddedEtcd(cfg EtcdEmbedConfig) (*embed.Etcd, error) {
|
||||
embedCfg.Name = cfg.Name
|
||||
embedCfg.Dir = cfg.DataDir
|
||||
embedCfg.InitialClusterToken = "kat-etcd-cluster" // Make this configurable if needed
|
||||
embedCfg.ForceNewCluster = false // Set to true only for initial bootstrap of a new cluster if needed
|
||||
embedCfg.ForceNewCluster = false // Set to true only for initial bootstrap of a new cluster if needed
|
||||
|
||||
lpurl, err := parseURLs(cfg.PeerURLs)
|
||||
if err != nil {
|
||||
|
@ -23,10 +23,10 @@ func TestEtcdStore(t *testing.T) {
|
||||
|
||||
// Configure and start embedded etcd
|
||||
etcdConfig := EtcdEmbedConfig{
|
||||
Name: "test-node",
|
||||
DataDir: tempDir,
|
||||
ClientURLs: []string{"http://localhost:0"}, // Use port 0 to get a random available port
|
||||
PeerURLs: []string{"http://localhost:0"},
|
||||
Name: "test-node",
|
||||
DataDir: tempDir,
|
||||
ClientURLs: []string{"http://localhost:0"}, // Use port 0 to get a random available port
|
||||
PeerURLs: []string{"http://localhost:0"},
|
||||
}
|
||||
|
||||
etcdServer, err := StartEmbeddedEtcd(etcdConfig)
|
||||
@ -232,10 +232,10 @@ func TestLeaderElection(t *testing.T) {
|
||||
|
||||
// Configure and start embedded etcd
|
||||
etcdConfig := EtcdEmbedConfig{
|
||||
Name: "election-test-node",
|
||||
DataDir: tempDir,
|
||||
ClientURLs: []string{"http://localhost:0"},
|
||||
PeerURLs: []string{"http://localhost:0"},
|
||||
Name: "election-test-node",
|
||||
DataDir: tempDir,
|
||||
ClientURLs: []string{"http://localhost:0"},
|
||||
PeerURLs: []string{"http://localhost:0"},
|
||||
}
|
||||
|
||||
etcdServer, err := StartEmbeddedEtcd(etcdConfig)
|
||||
|
Loading…
x
Reference in New Issue
Block a user