Skip to content
Snippets Groups Projects
Commit 732e2a1e authored by Juanli Shen's avatar Juanli Shen
Browse files

Tune load reporter test

parent 1ff545e0
Branches
Tags
No related merge requests found
...@@ -172,9 +172,9 @@ class LbFeedbackTest : public LoadReporterTest { ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment