diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 91fa66bbf9..e46cab09d4 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -16,6 +16,7 @@ steps: if_changed: - go.{mod,sum} - "**.go" + - .buildkite/Dockerfile-lint - .buildkite/steps/check-code-committed.sh plugins: - docker-compose#v4.14.0: diff --git a/internal/socket/server_test.go b/internal/socket/server_test.go index 8fa3952ed9..d5dbf225f7 100644 --- a/internal/socket/server_test.go +++ b/internal/socket/server_test.go @@ -110,8 +110,8 @@ func TestServerHandler(t *testing.T) { cli := &http.Client{ Transport: &http.Transport{ - Dial: func(string, string) (net.Conn, error) { - return net.Dial("unix", sockPath) + DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) { + return (&net.Dialer{}).DialContext(ctx, "unix", sockPath) }, }, }