mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update TestRunWithBlkioInvalidDevice Tests
/dev/sda wasn't an invalid device and this test failed, so, hopefully /dev/sdX isn't going to exist in other envs. Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com>
This commit is contained in:
parent
6f930a2ffa
commit
2236ecddfb
1 changed files with 2 additions and 2 deletions
|
@ -257,13 +257,13 @@ func (s *DockerSuite) TestRunWithBlkioInvalidWeightDevice(c *check.C) {
|
|||
|
||||
func (s *DockerSuite) TestRunWithBlkioInvalidDeviceReadBps(c *check.C) {
|
||||
testRequires(c, blkioWeight)
|
||||
out, _, err := dockerCmdWithError("run", "--device-read-bps", "/dev/sda:500", "busybox", "true")
|
||||
out, _, err := dockerCmdWithError("run", "--device-read-bps", "/dev/sdX:500", "busybox", "true")
|
||||
c.Assert(err, check.NotNil, check.Commentf(out))
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestRunWithBlkioInvalidDeviceWriteBps(c *check.C) {
|
||||
testRequires(c, blkioWeight)
|
||||
out, _, err := dockerCmdWithError("run", "--device-write-bps", "/dev/sda:500", "busybox", "true")
|
||||
out, _, err := dockerCmdWithError("run", "--device-write-bps", "/dev/sdX:500", "busybox", "true")
|
||||
c.Assert(err, check.NotNil, check.Commentf(out))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue