From 942161d559d31c0e725d7baa5c4e349ec90c3379 Mon Sep 17 00:00:00 2001 From: Anirudh Ramachandra Date: Tue, 1 Feb 2022 11:19:02 -0800 Subject: [PATCH] Move initialization to global context --- xds/bootstrap/bootstrap_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xds/bootstrap/bootstrap_test.go b/xds/bootstrap/bootstrap_test.go index ec12eecfdc23..80ae31ccd2e3 100644 --- a/xds/bootstrap/bootstrap_test.go +++ b/xds/bootstrap/bootstrap_test.go @@ -26,11 +26,9 @@ import ( const testCredsBuilderName = "test_creds" -var builder *testCredsBuilder +var builder = &testCredsBuilder{} func init() { - // Register a new credential builder. - builder = &testCredsBuilder{} RegisterCredentials(builder) }