From 94cd26a5e0f6dc76ca5c88952c81397168d70bd9 Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Sun, 15 Oct 2023 14:13:18 +0900 Subject: [PATCH] (ci) fix test --- gobrew.go | 2 +- gobrew_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gobrew.go b/gobrew.go index c6cf651..363b389 100644 --- a/gobrew.go +++ b/gobrew.go @@ -554,7 +554,7 @@ func (gb *GoBrew) Upgrade(currentVersion string) { _, err = io.Copy(destination, source) utils.CheckError(err, "==> [Error] Cannot copy file") utils.CheckError(os.Chmod(goBrewFile, 0755), "==> [Error] Cannot set file as executable") - color.Infoln("Upgrade successful") + color.Infoln("==> [Success] Upgrade successful") } func (gb *GoBrew) mkDirs(version string) { diff --git a/gobrew_test.go b/gobrew_test.go index 3e12a86..86744bb 100644 --- a/gobrew_test.go +++ b/gobrew_test.go @@ -186,7 +186,8 @@ func TestDoNotUpgradeLatestVersion(t *testing.T) { gb := NewGoBrewDirectory(tempDir) - binaryDir := filepath.Join(gb.installDir, "bin") + binaryDir := filepath.Join(gb.installDir, "bin", "gobrew") + _ = os.MkdirAll(binaryDir, os.ModePerm) baseName := "gobrew"