Merge pull request #20093 from AspirinSJL/tune_lr

Tune load reporter test
pull/20103/head
Juanli Shen 6 years ago committed by GitHub
commit f29aee7fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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
// much smaller when we use fake clock.
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()),
DoubleNear(expected_eps, expected_eps * 0.05));
DoubleNear(expected_eps, expected_eps * 0.3));
gpr_log(GPR_INFO,
"Verified LB feedback matches the samples of index [%lu, %lu).",
start, start + count);

Loading…
Cancel
Save