docker: TestDockerDriver_OOMKilled should now run on cgroups v2 (#25443)

Docker driver's TestDockerDriver_OOMKilled should run on cgroups v2 now, since
we're running docker v27 client library and our runners run docker v26 that
contain containerd fix containerd/containerd#6323.
This commit is contained in:
Piotr Kazmierczak
2025-03-19 16:53:37 +01:00
committed by GitHub
parent ce83993667
commit e249a6197f

View File

@@ -2576,9 +2576,7 @@ func TestDockerDriver_OOMKilled(t *testing.T) {
ci.Parallel(t)
testutil.DockerCompatible(t)
// waiting on upstream fix for cgroups v2
// see https://github.com/hashicorp/nomad/issues/13119
testutil.CgroupsCompatibleV1(t)
testutil.CgroupsCompatibleV2(t)
taskCfg := newTaskConfig("", []string{"sh", "-c", `sleep 2 && x=a && while true; do x="$x$x"; done`})
task := &drivers.TaskConfig{