|
@@ -29,12 +29,9 @@ func hasSystemd() bool {
|
|
// https://github.com/moby/moby/issues/35123
|
|
// https://github.com/moby/moby/issues/35123
|
|
func TestCgroupDriverSystemdMemoryLimit(t *testing.T) {
|
|
func TestCgroupDriverSystemdMemoryLimit(t *testing.T) {
|
|
skip.If(t, testEnv.DaemonInfo.OSType == "windows")
|
|
skip.If(t, testEnv.DaemonInfo.OSType == "windows")
|
|
|
|
+ skip.If(t, !hasSystemd())
|
|
t.Parallel()
|
|
t.Parallel()
|
|
|
|
|
|
- if !hasSystemd() {
|
|
|
|
- t.Skip("systemd not available")
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
d := daemon.New(t)
|
|
d := daemon.New(t)
|
|
c := d.NewClientT(t)
|
|
c := d.NewClientT(t)
|
|
|
|
|