mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
An implementation of exec in TestUpdateCPUQUota had a few issues, including resource leaking and calling both ContainerExecAttach and ContainerExecRun. The last one makes the test flaky: update_linux_test.go:136: expected cgroup value 20000, got: Error: Exec command f923baf709525f6b38f6511126addc5d9bb88fb477eeca1c22440551090fa2bb is already running Fix by using the integration/internal/exec package. While at it, use require/assert to further improve code readability. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> Upstream-commit: 8a7d6143fca69623e2f5d409328c97603843ccb6 Component: engine