adjust TestCgroupsDriven_Docker_Isolated.

This commit is contained in:
Raúl Kripalani 2021-01-18 21:40:17 +00:00
parent ac4c29506c
commit cf7bf56a2b

View File

@ -38,6 +38,11 @@ func TestCgroupsDriven_Create_Isolated(t *testing.T) {
func TestCgroupsDriven_Docker_Isolated(t *testing.T) {
skipIfNotIsolated(t)
if os.Getpid() != 1 {
// we are not running in a container.
t.Skipf("test only runs inside a container")
}
testCgroupsWatchdog(t, uint64(DockerMemLimit))
}