mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
check testing code for runconfig and volume
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
parent
457d562af1
commit
b3e5137856
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…
Add table
Reference in a new issue