Run gofmt
This commit is contained in:
@ -23,15 +23,15 @@ 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)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
// Use a cleanup function instead of defer to avoid double-close
|
||||
var once sync.Once
|
||||
t.Cleanup(func() {
|
||||
@ -232,15 +232,15 @@ 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)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
// Use a cleanup function instead of defer to avoid double-close
|
||||
var once sync.Once
|
||||
t.Cleanup(func() {
|
||||
|
Reference in New Issue
Block a user