Update code post codereview
Add specific types for Required and Optional DeviceNodes Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
7fb3f86fec
commit
3d95e5cf7b
4 changed files with 20 additions and 23 deletions
|
@ -65,7 +65,7 @@ func TestContainerJsonFormat(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, n := range nodes.DefaultNodes {
|
||||
if !contains(n, container.DeviceNodes["required"]) {
|
||||
if !contains(n, container.RequiredDeviceNodes) {
|
||||
t.Logf("devices should contain %s", n)
|
||||
t.Fail()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue