Merge pull request #29019 from lixiaobing10051267/masterRunCOnfig
check testing code for runconfig and volume
This commit is contained in:
commit
31d4d9e996
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue