Commit 03ee04e
This reverts commit aa9e94f.
### What does this PR do?
Re-apply #41981 and fix the tests that it broke.
### Motivation
Same as #41981: speed up tests execution thanks to stretchr/testify#1427 that makes `require.EventuallyWithT` test the condition immediately instead of waiting for an initial delay before making the very first try.
### Describe how you validated your changes
Launched a [full pipeline](https://gitlab.ddbuild.io/DataDog/datadog-agent/-/pipelines/79481153) to be sure to run all the tests and not a subset of them: #42020 (comment)
### Additional Notes
The main feature we were looking for by upgrading `testify` to `v1.11.1` was the fact that that `require.EventuallyWithT` is now evaluating the condition the first time immediately instead of waiting for a `tick` delay before making the first try.
This unexpectedly broke the tests that are touched in this PR.
Fixing tests by adding a `time.Sleep(…)` is most probably not the smartest way of fixing them. But it restores the execution time flow of the previous versions of `testify` that happened to make the tests pass.
Co-authored-by: guyarb <[email protected]>
1 parent 17c8a04 commit 03ee04e
File tree
3 files changed
+11
-5
lines changed- comp/otelcol/otlp/components/exporter/serializerexporter
- pkg/network/tracer
3 files changed
+11
-5
lines changedLines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 220 | | |
224 | 221 | | |
225 | 222 | | |
| |||
Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
| 1176 | + | |
1176 | 1177 | | |
1177 | 1178 | | |
1178 | 1179 | | |
| |||
1210 | 1211 | | |
1211 | 1212 | | |
1212 | 1213 | | |
| 1214 | + | |
1213 | 1215 | | |
1214 | 1216 | | |
1215 | 1217 | | |
| |||
0 commit comments