Run gofmt

This commit is contained in:
2025-05-16 22:13:42 -04:00
parent 2f6d3c9bb2
commit 800e4f72f2
3 changed files with 21 additions and 21 deletions

View File

@ -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() {