From 53c0de5627884d02b39f7d7d176c710ab36343df Mon Sep 17 00:00:00 2001 From: nemezo <107478254+nemezo@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:22:05 +0100 Subject: [PATCH] tests: replace deprecated types with current versions --- pkg/container/client_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/container/client_test.go b/pkg/container/client_test.go index 4e75409..c3e791e 100644 --- a/pkg/container/client_test.go +++ b/pkg/container/client_test.go @@ -1,6 +1,7 @@ package container import ( + "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/network" "time" @@ -270,7 +271,7 @@ var _ = Describe("the client", func() { // API.ContainerExecCreate ghttp.CombineHandlers( ghttp.VerifyRequest("POST", HaveSuffix("containers/%v/exec", containerID)), - ghttp.VerifyJSONRepresenting(types.ExecConfig{ + ghttp.VerifyJSONRepresenting(container.ExecOptions{ User: user, Detach: false, Tty: true, @@ -285,7 +286,7 @@ var _ = Describe("the client", func() { // API.ContainerExecStart ghttp.CombineHandlers( ghttp.VerifyRequest("POST", HaveSuffix("exec/%v/start", execID)), - ghttp.VerifyJSONRepresenting(types.ExecStartCheck{ + ghttp.VerifyJSONRepresenting(container.ExecStartOptions{ Detach: false, Tty: true, }),