From cee0f074015effff1b4de3dd8aedc2c9fbc4470d Mon Sep 17 00:00:00 2001 From: rhysd Date: Thu, 4 Jan 2018 00:26:01 +0900 Subject: [PATCH] fix tests for symlinks --- selfupdate/update_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfupdate/update_test.go b/selfupdate/update_test.go index 37c2116..68b1326 100644 --- a/selfupdate/update_test.go +++ b/selfupdate/update_test.go @@ -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) }