Fix TestCheckDockerVersion Assertion
parent
350f8a2494
commit
88f60b94f4
|
@ -86,9 +86,11 @@ func TestCheckDockerVersion(t *testing.T) {
|
|||
for _, c := range tc {
|
||||
t.Run("checkDockerVersion test", func(t *testing.T) {
|
||||
s := checkDockerVersion(c.version)
|
||||
if s.Error != nil {
|
||||
if c.expect != s.Reason {
|
||||
t.Errorf("Error %v expected. but got %q. (version string : %s)", c.expect, s.Reason, c.version)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue