Merge pull request #29019 from lixiaobing10051267/masterRunCOnfig

check testing code for runconfig and volume
This commit is contained in:
Justin Cormack 2016-12-01 03:00:43 -08:00 committed by GitHub
commit 31d4d9e996
2 changed files with 3 additions and 3 deletions

View file

@ -217,7 +217,7 @@ func TestDecodeHostConfig(t *testing.T) {
}
if len(c.CapDrop) != 1 && c.CapDrop[0] != "NET_ADMIN" {
t.Fatalf("Expected CapDrop MKNOD, got %v", c.CapDrop)
t.Fatalf("Expected CapDrop NET_ADMIN, got %v", c.CapDrop)
}
}
}

View file

@ -166,10 +166,10 @@ func TestFilterByUsed(t *testing.T) {
dangling := s.FilterByUsed(vols, false)
if len(dangling) != 1 {
t.Fatalf("expected 1 danging volume, got %v", len(dangling))
t.Fatalf("expected 1 dangling volume, got %v", len(dangling))
}
if dangling[0].Name() != "fake2" {
t.Fatalf("expected danging volume fake2, got %s", dangling[0].Name())
t.Fatalf("expected dangling volume fake2, got %s", dangling[0].Name())
}
used := s.FilterByUsed(vols, true)