Skip to content

Commit

Permalink
unset env in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Jul 26, 2021
1 parent 125d9b5 commit 3b2d300
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions exporters/otlp/test/otlp_grpc_exporter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,17 @@ TEST_F(OtlpGrpcExporterTestPeer, ConfigFromEnv)
EXPECT_EQ(GetOptions(exporter).ssl_credentials_cacert_as_string, cacert_str);
EXPECT_EQ(GetOptions(exporter).use_ssl_credentials, true);
EXPECT_EQ(GetOptions(exporter).endpoint, endpoint);
# if defined(_MSC_VER)
putenv("OTEL_EXPORTER_OTLP_GRPC_ENDPOINT=");
putenv("OTEL_EXPORTER_OTLP_GRPC_SSL_CERTIFICATE=");
putenv("OTEL_EXPORTER_OTLP_GRPC_SSL_ENABLE=");

# else
unsetenv("OTEL_EXPORTER_OTLP_GRPC_ENDPOINT");
unsetenv("OTEL_EXPORTER_OTLP_GRPC_SSL_CERTIFICATE");
unsetenv("OTEL_EXPORTER_OTLP_GRPC_SSL_ENABLE");

# endif
}
# endif

Expand Down

0 comments on commit 3b2d300

Please sign in to comment.