mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Wire up tests to support otel tracing
Integration tests will now configure clients to propagate traces as well as create spans for all tests. Some extra changes were needed (or desired for trace propagation) in the test helpers to pass through tracing spans via context. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strconv"
|
||||
@@ -16,8 +17,8 @@ type DockerCLIHistorySuite struct {
|
||||
ds *DockerSuite
|
||||
}
|
||||
|
||||
func (s *DockerCLIHistorySuite) TearDownTest(c *testing.T) {
|
||||
s.ds.TearDownTest(c)
|
||||
func (s *DockerCLIHistorySuite) TearDownTest(ctx context.Context, c *testing.T) {
|
||||
s.ds.TearDownTest(ctx, c)
|
||||
}
|
||||
|
||||
func (s *DockerCLIHistorySuite) OnTimeout(c *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user