Automated change: Fix sanity tests

pull/35857/head
markdroth 10 months ago committed by github-actions[bot]
parent 41d4687c44
commit ff3fc89564
  1. 8
      test/cpp/ext/gcp/observability_config_test.cc

@ -266,11 +266,9 @@ TEST(GcpEnvParsingTest, ConfigFileDoesNotExist) {
auto config = GcpObservabilityConfig::ReadFromEnv();
EXPECT_EQ(config.status().code(),
absl::StatusCode::kFailedPrecondition);
EXPECT_THAT(
config.status().message(),
::testing::StartsWith(absl::StrCat("error loading file ", kPath)));
EXPECT_EQ(config.status().code(), absl::StatusCode::kFailedPrecondition);
EXPECT_THAT(config.status().message(), ::testing::StartsWith(absl::StrCat(
"error loading file ", kPath)));
grpc_core::UnsetEnv("GRPC_GCP_OBSERVABILITY_CONFIG_FILE");
}

Loading…
Cancel
Save