TestCgroupDriverSystemdMemoryLimit: use skip.If()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-01-14 17:11:36 +01:00
parent ebc0750e9f
commit c11be31710
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

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