Skip to content

Commit

Permalink
fix: update test to fix etcd incompatible change
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangmingLuo committed Mar 4, 2024
1 parent d18829b commit 92c03f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etcd_resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func setupEmbedEtcd(t *testing.T) (*embed.Etcd, string) {
require.Nil(t, err)

cfg := embed.NewConfig()
cfg.LCUrls = []url.URL{*u}
cfg.ListenClientUrls = []url.URL{*u}
// disable etcd log
cfg.LogLevel = "panic"
cfg.Dir = dir
Expand All @@ -395,7 +395,7 @@ func setupEmbedEtcdWithTLS(t *testing.T, caFile, certFile, keyFile string) (*emb
cfg.ClientTLSInfo.TrustedCAFile = caFile

require.Nil(t, err)
cfg.LCUrls = []url.URL{*u}
cfg.ListenClientUrls = []url.URL{*u}
// disable etcd log
cfg.LogLevel = "panic"
cfg.Dir = dir
Expand Down

0 comments on commit 92c03f2

Please sign in to comment.