mirror of https://github.com/grpc/grpc-go.git
xds: pass empty balancer.BuildOptions in clusterresolver_test (#4711)
This commit is contained in:
parent
43b19ef0e4
commit
85b9a1a0fa
|
|
@ -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)
|
||||
}
|
||||
|
|
@ -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)
|
||||
}
|
||||
|
|
@ -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)
|
||||
}
|
||||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue