-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests ensuring the tracing module sets and cleans up metadata pro…
…perly (#2894) * Make TraceID randomness source selectable In order to be able to test how the client updates VUs metadata with a trace_id, we need to be able to predictably control the generated trace ids. Because the traceID encodes itself, we set a private an `io.Reader` randomness source attribute on it that will be used during encoding. That way we can for instance pass a reader that always produces the same value in the context of tests. * Add tests asserting tracing module sets and cleans up trace_id metadata * Make use of the fixed random source in tests
- Loading branch information
Showing
4 changed files
with
215 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.