Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -29,12 +29,9 @@ func hasSystemd() bool {
|
| 29 | 29 |
// https://github.com/moby/moby/issues/35123 |
| 30 | 30 |
func TestCgroupDriverSystemdMemoryLimit(t *testing.T) {
|
| 31 | 31 |
skip.If(t, testEnv.DaemonInfo.OSType == "windows") |
| 32 |
+ skip.If(t, !hasSystemd()) |
|
| 32 | 33 |
t.Parallel() |
| 33 | 34 |
|
| 34 |
- if !hasSystemd() {
|
|
| 35 |
- t.Skip("systemd not available")
|
|
| 36 |
- } |
|
| 37 |
- |
|
| 38 | 35 |
d := daemon.New(t) |
| 39 | 36 |
c := d.NewClientT(t) |
| 40 | 37 |
|