File tree Expand file tree Collapse file tree
google/cloud/storage/internal/grpc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,11 +89,15 @@ Options DefaultOptionsGrpc(
8989 // !conformance.has_value()) {
9090 if (testbench.has_value () && !testbench->empty ()) {
9191 options.set <EndpointOption>(*testbench);
92- // The emulator does not support HTTPS or authentication, use insecure
93- // (sometimes called "anonymous") credentials, which disable SSL.
94- options.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
95- std::cout << __func__ << " : testbench detected forcing InsecureCredentials"
96- << std::endl;
92+
93+ if (!conformance.has_value ()) {
94+ // The emulator does not support HTTPS or authentication, use insecure
95+ // (sometimes called "anonymous") credentials, which disable SSL.
96+ options.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
97+ std::cout << __func__
98+ << " : testbench detected forcing InsecureCredentials"
99+ << std::endl;
100+ }
97101 }
98102
99103 // gRPC <= 1.64 may crash when metrics are enabled, so we don't enable them by
You can’t perform that action at this time.
0 commit comments