Fix broken clang-tidy (#31666)

pull/31651/head^2
Vignesh Babu 2 years ago committed by GitHub
parent afec64877d
commit 864f08ff0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      test/core/event_engine/posix/traced_buffer_list_test.cc
  2. 5
      test/core/iomgr/buffer_list_test.cc

@ -55,8 +55,9 @@ void InitGlobals() {
void AdvanceClockMillis(uint64_t millis) {
grpc_core::ExecCtx exec_ctx;
g_now = gpr_time_add(
g_now, gpr_time_from_millis(
grpc_core::Clamp(millis, uint64_t(1), kMaxAdvanceTimeMillis),
g_now,
gpr_time_from_millis(grpc_core::Clamp(millis, static_cast<uint64_t>(1),
kMaxAdvanceTimeMillis),
GPR_TIMESPAN));
exec_ctx.InvalidateNow();
}

@ -53,8 +53,9 @@ void InitGlobals() {
void AdvanceClockMillis(uint64_t millis) {
grpc_core::ExecCtx exec_ctx;
g_now = gpr_time_add(
g_now, gpr_time_from_millis(
grpc_core::Clamp(millis, uint64_t(1), kMaxAdvanceTimeMillis),
g_now,
gpr_time_from_millis(grpc_core::Clamp(millis, static_cast<uint64_t>(1),
kMaxAdvanceTimeMillis),
GPR_TIMESPAN));
exec_ctx.InvalidateNow();
}

Loading…
Cancel
Save