mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #17011 from sunyuan3/TestRunWithBlkioInvalidWeight
update TestRunWithBlkioInvalidWeight
This commit is contained in:
commit
e4dadeed88
1 changed files with 4 additions and 3 deletions
|
@ -273,9 +273,10 @@ func (s *DockerSuite) TestRunWithBlkioWeight(c *check.C) {
|
||||||
|
|
||||||
func (s *DockerSuite) TestRunWithBlkioInvalidWeight(c *check.C) {
|
func (s *DockerSuite) TestRunWithBlkioInvalidWeight(c *check.C) {
|
||||||
testRequires(c, blkioWeight)
|
testRequires(c, blkioWeight)
|
||||||
if _, _, err := dockerCmdWithError("run", "--blkio-weight", "5", "busybox", "true"); err == nil {
|
out, _, err := dockerCmdWithError("run", "--blkio-weight", "5", "busybox", "true")
|
||||||
c.Fatalf("run with invalid blkio-weight should failed")
|
c.Assert(err, check.NotNil, check.Commentf(out))
|
||||||
}
|
expected := "Range of blkio weight is from 10 to 1000"
|
||||||
|
c.Assert(out, checker.Contains, expected)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestRunOOMExitCode(c *check.C) {
|
func (s *DockerSuite) TestRunOOMExitCode(c *check.C) {
|
||||||
|
|
Loading…
Reference in a new issue