mirror of
https://github.com/moby/moby.git
synced 2025-04-18 20:44:11 +03:00
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>
28 lines
473 B
Go
28 lines
473 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"net/http/httptest"
|
|
"testing"
|
|
|
|
"github.com/docker/docker/integration-cli/daemon"
|
|
)
|
|
|
|
type DockerCLINetworkSuite struct {
|
|
ds *DockerSuite
|
|
}
|
|
|
|
func (s *DockerCLINetworkSuite) TearDownTest(ctx context.Context, c *testing.T) {
|
|
s.ds.TearDownTest(ctx, c)
|
|
}
|
|
|
|
func (s *DockerCLINetworkSuite) OnTimeout(c *testing.T) {
|
|
s.ds.OnTimeout(c)
|
|
}
|
|
|
|
type DockerNetworkSuite struct {
|
|
server *httptest.Server
|
|
ds *DockerSuite
|
|
d *daemon.Daemon
|
|
}
|