Skip to content

Commit

Permalink
(ci) fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Oct 15, 2023
1 parent 82dc507 commit 94cd26a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gobrew.go
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion gobrew_test.go
Expand Up @@ -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"
Expand Down

0 comments on commit 94cd26a

Please sign in to comment.