Skip to content

Commit

Permalink
fix: simplify ask to false in test
Browse files Browse the repository at this point in the history
  • Loading branch information
juev committed Dec 8, 2023
1 parent 6d5dbb1 commit b278466
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gobrew_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ func TestInteractive(t *testing.T) {
assert.Equal(t, "None", currentVersion)
assert.NotEqual(t, currentVersion, latestVersion)

ask := false
gb.Interactive(ask)
gb.Interactive(false)

currentVersion = gb.CurrentVersion()
// remove string private from currentVersion (for macOS) due to /private/var symlink issue
Expand All @@ -226,7 +225,7 @@ func TestInteractive(t *testing.T) {
assert.Equal(t, "1.16.5", currentVersion)
assert.NotEqual(t, currentVersion, latestVersion)

gb.Interactive(ask)
gb.Interactive(false)
currentVersion = gb.CurrentVersion()
currentVersion = strings.Replace(currentVersion, "private", "", -1)
assert.Equal(t, currentVersion, latestVersion)
Expand Down

0 comments on commit b278466

Please sign in to comment.