瀏覽代碼

Merge pull request #16260 from sunyuan3/comment

Correct wrong comment for TestRunWithoutMemoryswapLimit case.
David Calavera 9 年之前
父節點
當前提交
72eb75a06c
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      integration-cli/docker_cli_run_unix_test.go

+ 4 - 1
integration-cli/docker_cli_run_unix_test.go

@@ -299,7 +299,10 @@ func (s *DockerSuite) TestRunEchoStdoutWithMemoryLimit(c *check.C) {
 	}
 	}
 }
 }
 
 
-// should run without memory swap
+// TestRunWithoutMemoryswapLimit sets memory limit and disables swap
+// memory limit, this means the processes in the container can use
+// 16M memory and as much swap memory as they need (if the host
+// supports swap memory).
 func (s *DockerSuite) TestRunWithoutMemoryswapLimit(c *check.C) {
 func (s *DockerSuite) TestRunWithoutMemoryswapLimit(c *check.C) {
 	testRequires(c, NativeExecDriver)
 	testRequires(c, NativeExecDriver)
 	testRequires(c, memoryLimitSupport)
 	testRequires(c, memoryLimitSupport)