Skip to content

Commit 7eb858f

Browse files
parth-opensrcgvisor-bot
authored andcommitted
kvm: re-enable the TestMemLimit
PiperOrigin-RevId: 896017625
1 parent 7397277 commit 7eb858f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

test/e2e/integration_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,17 +313,15 @@ func TestMemLimit(t *testing.T) {
313313
d := dockerutil.MakeContainer(ctx, t)
314314
defer d.CleanUp(ctx)
315315

316-
// FIXME: KVM allocates more than 128 MB on startup and OOMs the sandbox.
317-
// Investigate why KVM is allocating so much memory. Skip test for now.
316+
allocMemoryKb := 128 * 1024
318317
runArgs, err := dockerutil.RuntimeArgs()
319318
if err != nil {
320319
t.Fatalf("dockerutil.RuntimeArgs() failed: %v", err)
321320
}
322321
if slices.Contains(runArgs, "--platform=kvm") {
323-
t.Skip("Skipping test when platform/KVM is enabled.")
322+
// TODO: b/498290339 - KVM allocates more than 128 MB on startup and OOMs the sandbox.
323+
allocMemoryKb = 150 * 1024
324324
}
325-
326-
allocMemoryKb := 128 * 1024
327325
opts := dockerutil.RunOpts{
328326
Image: "basic/alpine",
329327
Memory: allocMemoryKb * 1024, // In bytes.

0 commit comments

Comments
 (0)