Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 1506a66

Browse files
authored
Merge pull request #41088 from thaJeztah/19.03_backport_invalid_cpu_shares_fix
[19.03 backport] int-cli/TestRunInvalidCPUShares: fix for newer runc Upstream-commit: abb5beffff11de5382733a5817f4837be4e275df Component: engine
2 parents cb97c81 + 8021269 commit 1506a66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/engine/integration-cli/docker_cli_run_unix_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ func (s *DockerSuite) TestRunInvalidCPUShares(c *testing.T) {
765765
testRequires(c, cpuShare, DaemonIsLinux)
766766
out, _, err := dockerCmdWithError("run", "--cpu-shares", "1", "busybox", "echo", "test")
767767
assert.ErrorContains(c, err, "", out)
768-
expected := "The minimum allowed cpu-shares is 2"
768+
expected := "minimum allowed cpu-shares is 2"
769769
assert.Assert(c, strings.Contains(out, expected))
770770

771771
out, _, err = dockerCmdWithError("run", "--cpu-shares", "-1", "busybox", "echo", "test")
@@ -775,7 +775,7 @@ func (s *DockerSuite) TestRunInvalidCPUShares(c *testing.T) {
775775

776776
out, _, err = dockerCmdWithError("run", "--cpu-shares", "99999999", "busybox", "echo", "test")
777777
assert.ErrorContains(c, err, "", out)
778-
expected = "The maximum allowed cpu-shares is"
778+
expected = "maximum allowed cpu-shares is"
779779
assert.Assert(c, strings.Contains(out, expected))
780780
}
781781

0 commit comments

Comments
 (0)