mirror of
https://github.com/status-im/go-watchdog.git
synced 2025-02-04 13:43:36 +00:00
adjust TestCgroupsDriven_Docker_Isolated.
This commit is contained in:
parent
ac4c29506c
commit
cf7bf56a2b
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user