Tune load reporter test

pull/20093/head
Juanli Shen 6 years ago
parent 1ff545e004
commit 732e2a1e90
  1. 4
      test/cpp/server/load_reporter/load_reporter_test.cc

@ -172,9 +172,9 @@ class LbFeedbackTest : public LoadReporterTest {
// TODO(juanlishen): The error is big because we use sleep(). It should be // TODO(juanlishen): The error is big because we use sleep(). It should be
// much smaller when we use fake clock. // much smaller when we use fake clock.
ASSERT_THAT(static_cast<double>(lb_feedback.calls_per_second()), ASSERT_THAT(static_cast<double>(lb_feedback.calls_per_second()),
DoubleNear(expected_qps, expected_qps * 0.05)); DoubleNear(expected_qps, expected_qps * 0.3));
ASSERT_THAT(static_cast<double>(lb_feedback.errors_per_second()), ASSERT_THAT(static_cast<double>(lb_feedback.errors_per_second()),
DoubleNear(expected_eps, expected_eps * 0.05)); DoubleNear(expected_eps, expected_eps * 0.3));
gpr_log(GPR_INFO, gpr_log(GPR_INFO,
"Verified LB feedback matches the samples of index [%lu, %lu).", "Verified LB feedback matches the samples of index [%lu, %lu).",
start, start + count); start, start + count);

Loading…
Cancel
Save