address a few nits
Docker-DCO-1.1-Signed-off-by: Tibor Vass <teabee89@gmail.com> (github: tiborvass) Upstream-commit: d082381a93810e6c386382f24da93518880e9250 Component: engine
This commit is contained in:
@ -12,8 +12,8 @@ func TestImportDisplay(t *testing.T) {
|
||||
out, _, err := runCommandWithOutput(importCmd)
|
||||
errorOut(err, t, fmt.Sprintf("import failed with errors: %v", err))
|
||||
|
||||
if n := len(strings.Split(out, "\n")); n != 3 {
|
||||
t.Fatalf("display is messed up: %d '\\n' instead of 3", n)
|
||||
if n := strings.Count(out, "\n"); n != 2 {
|
||||
t.Fatalf("display is messed up: %d '\\n' instead of 2", n)
|
||||
}
|
||||
|
||||
logDone("import - cirros was imported and display is fine")
|
||||
|
||||
Reference in New Issue
Block a user