trivial: typo cleanup
Signed-off-by: David Mackey <tdmackey@booleanhaiku.com> Upstream-commit: 3941623fbc3fa724d61f53121513ffd87d03b61c Component: engine
This commit is contained in:
@ -20,7 +20,7 @@ func TestCanonicalTarNameForPath(t *testing.T) {
|
||||
if out, err := CanonicalTarNameForPath(v.in); err != nil && !v.shouldFail {
|
||||
t.Fatalf("cannot get canonical name for path: %s: %v", v.in, err)
|
||||
} else if v.shouldFail && err == nil {
|
||||
t.Fatalf("canonical path call should have pailed with error. in=%s out=%s", v.in, out)
|
||||
t.Fatalf("canonical path call should have failed with error. in=%s out=%s", v.in, out)
|
||||
} else if !v.shouldFail && out != v.expected {
|
||||
t.Fatalf("wrong canonical tar name. expected:%s got:%s", v.expected, out)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user