fix: avoid race condition by not running exec/start twice

This commit is contained in:
Daniel A 2024-04-22 19:23:01 +00:00
parent 76f9cea516
commit 9505cd5d4a
2 changed files with 0 additions and 16 deletions

View file

@ -282,15 +282,6 @@ var _ = Describe("the client", func() {
}),
ghttp.RespondWithJSONEncoded(http.StatusOK, types.IDResponse{ID: execID}),
),
// API.ContainerExecStart
ghttp.CombineHandlers(
ghttp.VerifyRequest("POST", HaveSuffix("exec/%v/start", execID)),
ghttp.VerifyJSONRepresenting(types.ExecStartCheck{
Detach: false,
Tty: true,
}),
ghttp.RespondWith(http.StatusOK, nil),
),
// API.ContainerExecInspect
ghttp.CombineHandlers(
ghttp.VerifyRequest("GET", HaveSuffix("exec/ex-exec-id/json")),