mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
test: disable docker OOM detection test on cgroups v2 (#13928)
OOM detection under cgroups v2 is flaky under versions of `containerd` before v1.6.3, but our `containerd` dependency is transitive on `moby/moby`, who have not yet updated. Disable this test for cgroups v2 environments until we can update the dependency chain.
This commit is contained in:
@@ -2383,9 +2383,9 @@ func TestDockerDriver_OOMKilled(t *testing.T) {
|
||||
ci.Parallel(t)
|
||||
testutil.DockerCompatible(t)
|
||||
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("Windows does not support OOM Killer")
|
||||
}
|
||||
// waiting on upstream fix for cgroups v2
|
||||
// see https://github.com/hashicorp/nomad/issues/13119
|
||||
testutil.CgroupsCompatibleV1(t)
|
||||
|
||||
taskCfg := newTaskConfig("", []string{"sh", "-c", `sleep 2 && x=a && while true; do x="$x$x"; done`})
|
||||
task := &drivers.TaskConfig{
|
||||
|
||||
Reference in New Issue
Block a user