New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal/envconfig: Set Custom LB Env Var to true by default #6317
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ import ( | |
"google.golang.org/grpc" | ||
_ "google.golang.org/grpc/balancer/weightedroundrobin" // To register weighted_round_robin_experimental. | ||
"google.golang.org/grpc/credentials/insecure" | ||
"google.golang.org/grpc/internal/envconfig" | ||
"google.golang.org/grpc/internal/stubserver" | ||
"google.golang.org/grpc/internal/testutils" | ||
"google.golang.org/grpc/internal/testutils/roundrobin" | ||
|
@@ -91,12 +90,6 @@ func clusterWithLBConfiguration(clusterName, edsServiceName string, secLevel e2e | |
// first) child load balancing policy, and asserts the correct distribution | ||
// based on the locality weights and the endpoint picking policy specified. | ||
func (s) TestWrrLocality(t *testing.T) { | ||
oldCustomLBSupport := envconfig.XDSCustomLBPolicy | ||
envconfig.XDSCustomLBPolicy = true | ||
defer func() { | ||
envconfig.XDSCustomLBPolicy = oldCustomLBSupport | ||
}() | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably would be best to leave these in there until the env var is removed. Otherwise the tests will fail if you disable it in your environment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deleted these (by git checkout master ./) lol |
||
backend1 := stubserver.StartTestService(t, nil) | ||
port1 := testutils.ParsePort(t, backend1.Address) | ||
defer backend1.Stop() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to "false"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.