Skip to content

Commit 9737d6b

Browse files
committed
increase OOM test memory limit
Signed-off-by: Justin Alvarez <[email protected]>
1 parent 4b2e4c1 commit 9737d6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/service_integ_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,9 +2170,9 @@ func TestOOM_Isolated(t *testing.T) {
21702170
containerd.WithNewSnapshot("snapshot-"+vmID, image),
21712171
containerd.WithNewSpec(
21722172
// The container is having 3MB of memory.
2173-
oci.WithMemoryLimit(3*1024*1024),
2173+
oci.WithMemoryLimit(4*1024*1024),
21742174
// But the dd command allocates 10MB of data on memory, which will be OOM killed.
2175-
oci.WithProcessArgs("/bin/dd", "if=/dev/zero", "ibs=10M", "of=/dev/null"),
2175+
oci.WithProcessArgs("/bin/dd", "if=/dev/zero", "ibs=1000M", "of=/dev/null"),
21762176
firecrackeroci.WithVMID(vmID),
21772177
),
21782178
)

0 commit comments

Comments
 (0)