mirror of
https://github.com/MedzikUser/go-github-selfupdate.git
synced 2024-08-15 03:25:29 +00:00
fix tests for symlinks
This commit is contained in:
parent
ecfd5d1211
commit
cee0f07401
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ func TestUpdateViaSymlink(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if p != exePath {
|
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")
|
v := semver.MustParse("1.2.2")
|
||||||
for _, p := range []string{yyy, xxx} {
|
for _, p := range []string{yyy, xxx} {
|
||||||
_, err := UpdateCommand(yyy, v, "owner/repo")
|
_, err := UpdateCommand(p, v, "owner/repo")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatal("Error should occur for unlinked symlink", p)
|
t.Fatal("Error should occur for unlinked symlink", p)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue