Fixing a clang tidy caught at import time

pull/25291/head
Donna Dionne 4 years ago
parent e6c5554b0e
commit 4cab9778d8
  1. 3
      test/core/util/stack_tracer_test.cc

@ -22,6 +22,7 @@
#include <string>
#include "absl/debugging/symbolize.h"
#include "absl/strings/match.h"
#include <grpc/support/log.h>
@ -31,7 +32,7 @@ TEST(StackTracerTest, Basic) {
std::string stack_trace = grpc_core::testing::GetCurrentStackTrace();
gpr_log(GPR_INFO, "stack_trace=%s", stack_trace.c_str());
#if !defined(NDEBUG) && !defined(GPR_MUSL_LIBC_COMPAT)
EXPECT_TRUE(stack_trace.find("Basic") != std::string::npos);
EXPECT_TRUE(absl::StrContains(stack_trace, "Basic"));
#endif
}

Loading…
Cancel
Save