Skip to content

Commit e77114b

Browse files
author
xiao
committed
remove TestModule1CheckEnv()
1 parent 2621c6f commit e77114b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

module1/module1_test.go

-11
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,10 @@ import (
66
"io/ioutil"
77
"log"
88
"os"
9-
"path"
109
"strings"
1110
"testing"
1211
)
1312

14-
func TestModule1CheckEnv(t *testing.T) {
15-
actual := os.Getenv("GOPATH")
16-
expected0 := ""
17-
expected1 := path.Join(os.Getenv("HOME"), "go")
18-
19-
if actual != expected0 && actual != expected1 {
20-
t.Errorf("environment variable GOPATH not set properly")
21-
}
22-
}
23-
2413
func TestModule1CheckEnvGOOS(t *testing.T) {
2514
found := OpenFileAndFindNthString("module1.txt", 0, "GOOS")
2615

0 commit comments

Comments
 (0)