1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-02-09 13:37:12 +02:00
Tyler Yahn 87cc1e1fea
Test BatchSpanProcessor export timeout directly (#1982)
Test the export timeout by waiting indefinitely for the export to
timeout instead of having a second timer, in its own goroutine, timeout.
The algorithm this replaces fails on machines that are slow and the one
meta-timer is given priority to progress over the export timer that is
being testing, resulting in a false-negative test result.

Move the testing of a BatchSpanProcessor export timeout to its own test
function. This removes the bloat this introduces to the other testing
options and allows customization that enable the testing in a
deterministic manner.
2021-06-09 14:05:10 -07:00
..
2021-05-24 08:08:29 -07:00
2021-05-27 07:53:56 -07:00
2021-05-27 07:53:56 -07:00