Skip to content

Commit 43ecd08

Browse files
authored
Merge pull request #1938 from goplus/main
test: make cmd/TestInstallInNonGitRepo not affected by actual major.minor
2 parents 282fb2d + 6e06287 commit 43ecd08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/make_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ package make_test
66
import (
77
"bytes"
88
"errors"
9+
"fmt"
910
"os"
1011
"os/exec"
1112
"path/filepath"
1213
"runtime"
1314
"strings"
1415
"testing"
16+
17+
"github.com/goplus/gop/env"
1518
)
1619

1720
const (
@@ -307,7 +310,7 @@ func TestInstallInNonGitRepo(t *testing.T) {
307310
})
308311

309312
t.Run("install with VERSION file", func(t *testing.T) {
310-
version := "v1.3.98"
313+
version := fmt.Sprintf("v%s.65535", env.MainVersion)
311314
// Create VERSION file
312315
if err := os.WriteFile(versionFile, []byte(version), 0644); err != nil {
313316
t.Fatal(err)

0 commit comments

Comments
 (0)