fix tests for symlinks

This commit is contained in:
rhysd 2018-01-04 00:26:01 +09:00
parent ecfd5d1211
commit cee0f07401
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ func TestUpdateViaSymlink(t *testing.T) {
t.Fatal(err)
}
if p != exePath {
t.Fatalf("Created symlink no loger points the executable")
t.Fatal("Created symlink no loger points the executable:", p)
}
}
@ -143,7 +143,7 @@ func TestUpdateBrokenSymlinks(t *testing.T) {
v := semver.MustParse("1.2.2")
for _, p := range []string{yyy, xxx} {
_, err := UpdateCommand(yyy, v, "owner/repo")
_, err := UpdateCommand(p, v, "owner/repo")
if err == nil {
t.Fatal("Error should occur for unlinked symlink", p)
}