diff --git a/gobrew_test.go b/gobrew_test.go index 52daf35..eb6c487 100644 --- a/gobrew_test.go +++ b/gobrew_test.go @@ -26,7 +26,7 @@ func setupGobrew(t *testing.T, ts *httptest.Server) GoBrew { } func TestInstallAndExistVersion(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) @@ -37,7 +37,7 @@ func TestInstallAndExistVersion(t *testing.T) { } func TestUnInstallThenNotExistVersion(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) @@ -51,7 +51,7 @@ func TestUnInstallThenNotExistVersion(t *testing.T) { } func TestUpgrade(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) @@ -102,7 +102,7 @@ func TestDoNotUpgradeLatestVersion(t *testing.T) { } func TestInteractive(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) @@ -130,7 +130,7 @@ func TestInteractive(t *testing.T) { } func TestPrune(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) @@ -144,7 +144,7 @@ func TestPrune(t *testing.T) { } func TestGoBrew_CurrentVersion(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) diff --git a/helpers_test.go b/helpers_test.go index d90507b..a26e05b 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -12,7 +12,7 @@ import ( ) func TestJudgeVersion(t *testing.T) { - //t.Parallel() + t.Parallel() tests := []struct { version string wantVersion string @@ -56,7 +56,7 @@ func TestJudgeVersion(t *testing.T) { for _, test := range tests { test := test t.Run(test.version, func(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) @@ -69,7 +69,7 @@ func TestJudgeVersion(t *testing.T) { } func TestListVersions(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) @@ -79,7 +79,7 @@ func TestListVersions(t *testing.T) { } func TestExistVersion(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) @@ -91,7 +91,7 @@ func TestExistVersion(t *testing.T) { } func TestExtractMajorVersion(t *testing.T) { - //t.Parallel() + t.Parallel() type args struct { version string } @@ -139,7 +139,7 @@ func TestExtractMajorVersion(t *testing.T) { for _, tt := range tests { tt := tt t.Run(tt.name, func(t *testing.T) { - //t.Parallel() + t.Parallel() if got := extractMajorVersion(tt.args.version); got != tt.want { t.Errorf("ExtractMajorVersion() = %v, want %v", got, tt.want) } @@ -149,7 +149,7 @@ func TestExtractMajorVersion(t *testing.T) { } func TestGoBrew_extract(t *testing.T) { - //t.Parallel() + t.Parallel() type args struct { srcTar string dstDir string @@ -179,7 +179,7 @@ func TestGoBrew_extract(t *testing.T) { for _, tt := range tests { tt := tt t.Run(tt.name, func(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) @@ -192,7 +192,7 @@ func TestGoBrew_extract(t *testing.T) { } func Test_doRequest(t *testing.T) { - //t.Parallel() + t.Parallel() type args struct { url string } @@ -212,7 +212,7 @@ func Test_doRequest(t *testing.T) { for _, tt := range tests { tt := tt t.Run(tt.name, func(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() urlGet, _ := url.JoinPath(ts.URL, tt.args.url) @@ -225,7 +225,7 @@ func Test_doRequest(t *testing.T) { } func TestGoBrew_downloadAndExtract(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) defer ts.Close() gb := setupGobrew(t, ts) diff --git a/utils/utils_test.go b/utils/utils_test.go index c2fbf36..7e28879 100644 --- a/utils/utils_test.go +++ b/utils/utils_test.go @@ -8,7 +8,7 @@ import ( ) func TestDownloadWithProgress(t *testing.T) { - //t.Parallel() + t.Parallel() ts := httptest.NewServer(http.FileServer(http.Dir("../testdata"))) defer ts.Close() path, _ := url.JoinPath(ts.URL, "go1.9.darwin-arm64.tar.gz")