Skip to content

Commit

Permalink
xds: pass empty balancer.BuildOptions in clusterresolver_test (#4711)
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars committed Aug 27, 2021
1 parent 43b19ef commit 85b9a1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xds/internal/balancer/clusterresolver/clusterresolver_test.go
Expand Up @@ -207,7 +207,7 @@ func (s) TestSubConnStateChange(t *testing.T) {
defer cleanup()

builder := balancer.Get(Name)
edsB := builder.Build(newNoopTestClientConn(), balancer.BuildOptions{Target: resolver.Target{Endpoint: testEDSServcie}})
edsB := builder.Build(newNoopTestClientConn(), balancer.BuildOptions{})
if edsB == nil {
t.Fatalf("builder.Build(%s) failed and returned nil", Name)
}
Expand Down Expand Up @@ -253,7 +253,7 @@ func (s) TestErrorFromXDSClientUpdate(t *testing.T) {
defer cleanup()

builder := balancer.Get(Name)
edsB := builder.Build(newNoopTestClientConn(), balancer.BuildOptions{Target: resolver.Target{Endpoint: testEDSServcie}})
edsB := builder.Build(newNoopTestClientConn(), balancer.BuildOptions{})
if edsB == nil {
t.Fatalf("builder.Build(%s) failed and returned nil", Name)
}
Expand Down Expand Up @@ -341,7 +341,7 @@ func (s) TestErrorFromResolver(t *testing.T) {
defer cleanup()

builder := balancer.Get(Name)
edsB := builder.Build(newNoopTestClientConn(), balancer.BuildOptions{Target: resolver.Target{Endpoint: testEDSServcie}})
edsB := builder.Build(newNoopTestClientConn(), balancer.BuildOptions{})
if edsB == nil {
t.Fatalf("builder.Build(%s) failed and returned nil", Name)
}
Expand Down Expand Up @@ -443,7 +443,7 @@ func (s) TestClientWatchEDS(t *testing.T) {
defer cleanup()

builder := balancer.Get(Name)
edsB := builder.Build(newNoopTestClientConn(), balancer.BuildOptions{Target: resolver.Target{Endpoint: testEDSServcie}})
edsB := builder.Build(newNoopTestClientConn(), balancer.BuildOptions{})
if edsB == nil {
t.Fatalf("builder.Build(%s) failed and returned nil", Name)
}
Expand Down

0 comments on commit 85b9a1a

Please sign in to comment.