Skip to content

Commit f5f02d0

Browse files
chore(tests): tracer test relaxed [backport 2.0] (#7172)
Backport 5313bda from #7090 to 2.0. relax a condition to get less flaky failures on CI in tracer test. ## Checklist - [x] Change(s) are motivated and described in the PR description. - [x] Testing strategy is described if automated tests are not included in the PR. - [x] Risk is outlined (performance impact, potential for breakage, maintainability, etc). - [x] Change is maintainable (easy to change, telemetry, documentation). - [x] [Library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) are followed. If no release note is required, add label `changelog/no-changelog`. - [x] Documentation is included (in-code, generated user docs, [public corp docs](https://github.com/DataDog/documentation/)). - [x] Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] Title is accurate. - [x] No unnecessary changes are introduced. - [x] Description motivates each change. - [x] Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes unless absolutely necessary. - [x] Testing strategy adequately addresses listed risk(s). - [x] Change is maintainable (easy to change, telemetry, documentation). - [x] Release note makes sense to a user of the library. - [x] Reviewer has explicitly acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment. - [x] Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting) - [x] If this PR touches code that signs or publishes builds or packages, or handles credentials of any kind, I've requested a review from `@DataDog/security-design-and-guidance`. - [x] This PR doesn't touch any of that. Co-authored-by: Christophe Papazian <[email protected]>
1 parent 919628d commit f5f02d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tracer/runtime/test_metric_collectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_gen1_changes(self):
141141
# create reference
142142
a = []
143143
collected = collector.collect([GC_COUNT_GEN0])
144-
self.assertGreater(collected[0][1], start[0])
144+
self.assertGreaterEqual(collected[0][1], start[0])
145145

146146
# delete reference and collect
147147
del a

0 commit comments

Comments
 (0)