1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #38567 from thaJeztah/use_the_skip

TestCgroupDriverSystemdMemoryLimit: use skip.If()
This commit is contained in:
Vincent Demeester 2019-01-15 09:10:57 +01:00 committed by GitHub
commit b5be9f63eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)