Fix TestCheckDockerVersion Assertion

pull/10457/head
Kent Iso 2021-02-13 00:14:37 +09:00
parent 350f8a2494
commit 88f60b94f4
1 changed files with 4 additions and 2 deletions

View File

@ -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)
}
}
})
}
}