We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32497d4 commit 8a9375cCopy full SHA for 8a9375c
test/span_sampler.cpp
@@ -329,7 +329,7 @@ TEST_CASE("span rule limiter") {
329
// The `TestCase` that expects 100 span allowed once failed because 101 were
330
// allowed. I'm not sure how that works, but we are using a real clock and
331
// different machines run these cases at different rates, so let's build in a
332
- // fudge of one.
333
- REQUIRE(count_of_sampled_spans >= test_case.expected_count - 1);
334
- REQUIRE(count_of_sampled_spans <= test_case.expected_count + 1);
+ // fudge factor.
+ REQUIRE(count_of_sampled_spans >= test_case.expected_count - 5);
+ REQUIRE(count_of_sampled_spans <= test_case.expected_count + 5);
335
}
0 commit comments