|
@@ -40,7 +40,7 @@ func TestRunEchoStdout(t *testing.T) {
|
|
|
|
|
|
// "test" should be printed
|
|
// "test" should be printed
|
|
func TestRunEchoStdoutWithMemoryLimit(t *testing.T) {
|
|
func TestRunEchoStdoutWithMemoryLimit(t *testing.T) {
|
|
- runCmd := exec.Command(dockerBinary, "run", "-m", "2786432", "busybox", "echo", "test")
|
|
|
|
|
|
+ runCmd := exec.Command(dockerBinary, "run", "-m", "4m", "busybox", "echo", "test")
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
|
if err != nil {
|
|
if err != nil {
|
|
t.Fatalf("failed to run container: %v, output: %q", err, out)
|
|
t.Fatalf("failed to run container: %v, output: %q", err, out)
|
|
@@ -77,7 +77,7 @@ func TestRunEchoStdoutWitCPULimit(t *testing.T) {
|
|
|
|
|
|
// "test" should be printed
|
|
// "test" should be printed
|
|
func TestRunEchoStdoutWithCPUAndMemoryLimit(t *testing.T) {
|
|
func TestRunEchoStdoutWithCPUAndMemoryLimit(t *testing.T) {
|
|
- runCmd := exec.Command(dockerBinary, "run", "-c", "1000", "-m", "2786432", "busybox", "echo", "test")
|
|
|
|
|
|
+ runCmd := exec.Command(dockerBinary, "run", "-c", "1000", "-m", "4m", "busybox", "echo", "test")
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
|
if err != nil {
|
|
if err != nil {
|
|
t.Fatalf("failed to run container: %v, output: %q", err, out)
|
|
t.Fatalf("failed to run container: %v, output: %q", err, out)
|