Signed-off-by: Jessica Frazelle <acidburn@docker.com>
| ... | ... |
@@ -1415,6 +1415,7 @@ func (s *DockerSuite) TestPostContainersCreateShmSizeZero(c *check.C) {
|
| 1415 | 1415 |
} |
| 1416 | 1416 |
|
| 1417 | 1417 |
func (s *DockerSuite) TestPostContainersCreateShmSizeHostConfigOmitted(c *check.C) {
|
| 1418 |
+ var defaultSHMSize int64 = 67108864 |
|
| 1418 | 1419 |
config := map[string]interface{}{
|
| 1419 | 1420 |
"Image": "busybox", |
| 1420 | 1421 |
"Cmd": "mount", |
| ... | ... |
@@ -1434,7 +1435,7 @@ func (s *DockerSuite) TestPostContainersCreateShmSizeHostConfigOmitted(c *check. |
| 1434 | 1434 |
var containerJSON types.ContainerJSON |
| 1435 | 1435 |
c.Assert(json.Unmarshal(body, &containerJSON), check.IsNil) |
| 1436 | 1436 |
|
| 1437 |
- c.Assert(*containerJSON.HostConfig.ShmSize, check.Equals, runconfig.DefaultSHMSize) |
|
| 1437 |
+ c.Assert(*containerJSON.HostConfig.ShmSize, check.Equals, defaultSHMSize) |
|
| 1438 | 1438 |
|
| 1439 | 1439 |
out, _ := dockerCmd(c, "start", "-i", containerJSON.ID) |
| 1440 | 1440 |
shmRegexp := regexp.MustCompile(`shm on /dev/shm type tmpfs(.*)size=65536k`) |