A newer runc changed [1] a couple of certain error messages checked in this
test to be lowercased, which lead to a mismatch in this test case.
Fix is to remove "The" (which was replaced with "the").
[1] https://github.com/opencontainers/runc/pull/2441
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 56de0489fc7d5ec498ee5545d50b0e770a7ca339)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -765,7 +765,7 @@ func (s *DockerSuite) TestRunInvalidCPUShares(c *testing.T) {
|
| 765 | 765 |
testRequires(c, cpuShare, DaemonIsLinux) |
| 766 | 766 |
out, _, err := dockerCmdWithError("run", "--cpu-shares", "1", "busybox", "echo", "test")
|
| 767 | 767 |
assert.ErrorContains(c, err, "", out) |
| 768 |
- expected := "The minimum allowed cpu-shares is 2" |
|
| 768 |
+ expected := "minimum allowed cpu-shares is 2" |
|
| 769 | 769 |
assert.Assert(c, strings.Contains(out, expected)) |
| 770 | 770 |
|
| 771 | 771 |
out, _, err = dockerCmdWithError("run", "--cpu-shares", "-1", "busybox", "echo", "test")
|
| ... | ... |
@@ -775,7 +775,7 @@ func (s *DockerSuite) TestRunInvalidCPUShares(c *testing.T) {
|
| 775 | 775 |
|
| 776 | 776 |
out, _, err = dockerCmdWithError("run", "--cpu-shares", "99999999", "busybox", "echo", "test")
|
| 777 | 777 |
assert.ErrorContains(c, err, "", out) |
| 778 |
- expected = "The maximum allowed cpu-shares is" |
|
| 778 |
+ expected = "maximum allowed cpu-shares is" |
|
| 779 | 779 |
assert.Assert(c, strings.Contains(out, expected)) |
| 780 | 780 |
} |
| 781 | 781 |
|