mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Increase memory limit in test cases
Signed-off-by: Yohei Ueda <yohei@jp.ibm.com>
This commit is contained in:
parent
75b47467aa
commit
64fd3e89c7
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ func TestRunEchoStdout(t *testing.T) {
|
|||
|
||||
// "test" should be printed
|
||||
func TestRunEchoStdoutWithMemoryLimit(t *testing.T) {
|
||||
runCmd := exec.Command(dockerBinary, "run", "-m", "4m", "busybox", "echo", "test")
|
||||
runCmd := exec.Command(dockerBinary, "run", "-m", "16m", "busybox", "echo", "test")
|
||||
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to run container: %v, output: %q", err, out)
|
||||
|
@ -81,7 +81,7 @@ func TestRunEchoStdoutWitCPULimit(t *testing.T) {
|
|||
|
||||
// "test" should be printed
|
||||
func TestRunEchoStdoutWithCPUAndMemoryLimit(t *testing.T) {
|
||||
runCmd := exec.Command(dockerBinary, "run", "-c", "1000", "-m", "4m", "busybox", "echo", "test")
|
||||
runCmd := exec.Command(dockerBinary, "run", "-c", "1000", "-m", "16m", "busybox", "echo", "test")
|
||||
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to run container: %v, output: %q", err, out)
|
||||
|
|
Loading…
Add table
Reference in a new issue