mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
🌱 Remove parallel tests because of rate limiting issues. (#2527)
- Remove parallel tests because of rate limiting. Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com> Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
This commit is contained in:
parent
f5e6f63f04
commit
fa0592fab2
@ -49,7 +49,6 @@ linters:
|
|||||||
- misspell
|
- misspell
|
||||||
- nakedret
|
- nakedret
|
||||||
- nestif
|
- nestif
|
||||||
- paralleltest
|
|
||||||
- predeclared
|
- predeclared
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- stylecheck
|
- stylecheck
|
||||||
|
@ -27,8 +27,7 @@ import (
|
|||||||
|
|
||||||
// Test_fetchRawDependencyDiffData is a test function for fetchRawDependencyDiffData.
|
// Test_fetchRawDependencyDiffData is a test function for fetchRawDependencyDiffData.
|
||||||
func Test_fetchRawDependencyDiffData(t *testing.T) {
|
func Test_fetchRawDependencyDiffData(t *testing.T) {
|
||||||
t.Parallel()
|
//nolint
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
dCtx dependencydiffContext
|
dCtx dependencydiffContext
|
||||||
@ -69,7 +68,6 @@ func Test_fetchRawDependencyDiffData(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test_initRepoAndClientByChecks(t *testing.T) {
|
func Test_initRepoAndClientByChecks(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
//nolint
|
//nolint
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
@ -129,8 +127,7 @@ func Test_initRepoAndClientByChecks(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test_getScorecardCheckResults(t *testing.T) {
|
func Test_getScorecardCheckResults(t *testing.T) {
|
||||||
t.Parallel()
|
//nolint
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
dCtx dependencydiffContext
|
dCtx dependencydiffContext
|
||||||
@ -161,7 +158,6 @@ func Test_getScorecardCheckResults(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test_mapDependencyEcosystemNaming(t *testing.T) {
|
func Test_mapDependencyEcosystemNaming(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
//nolint
|
//nolint
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
@ -217,7 +213,7 @@ func Test_mapDependencyEcosystemNaming(t *testing.T) {
|
|||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
tt := tt
|
tt := tt
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
t.Parallel()
|
//nolint
|
||||||
err := mapDependencyEcosystemNaming(tt.deps)
|
err := mapDependencyEcosystemNaming(tt.deps)
|
||||||
if tt.errWanted != nil && errors.Is(tt.errWanted, err) {
|
if tt.errWanted != nil && errors.Is(tt.errWanted, err) {
|
||||||
t.Errorf("not a wanted error, want:%v, got:%v", tt.errWanted, err)
|
t.Errorf("not a wanted error, want:%v, got:%v", tt.errWanted, err)
|
||||||
@ -228,8 +224,7 @@ func Test_mapDependencyEcosystemNaming(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test_isSpecifiedByUser(t *testing.T) {
|
func Test_isSpecifiedByUser(t *testing.T) {
|
||||||
t.Parallel()
|
//nolint
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
ct pkg.ChangeType
|
ct pkg.ChangeType
|
||||||
@ -267,7 +262,7 @@ func Test_isSpecifiedByUser(t *testing.T) {
|
|||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
tt := tt
|
tt := tt
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
t.Parallel()
|
//nolint
|
||||||
result := isSpecifiedByUser(tt.ct, tt.changeTypesToCheck)
|
result := isSpecifiedByUser(tt.ct, tt.changeTypesToCheck)
|
||||||
if result != tt.resultWanted {
|
if result != tt.resultWanted {
|
||||||
t.Errorf("result (%v) != result wanted (%v)", result, tt.resultWanted)
|
t.Errorf("result (%v) != result wanted (%v)", result, tt.resultWanted)
|
||||||
|
@ -29,7 +29,6 @@ func TestE2e(t *testing.T) {
|
|||||||
if val, exists := os.LookupEnv("SKIP_GINKGO"); exists && val == "1" {
|
if val, exists := os.LookupEnv("SKIP_GINKGO"); exists && val == "1" {
|
||||||
t.Skip()
|
t.Skip()
|
||||||
}
|
}
|
||||||
t.Parallel()
|
|
||||||
RegisterFailHandler(Fail)
|
RegisterFailHandler(Fail)
|
||||||
RunSpecs(t, "E2e Suite")
|
RunSpecs(t, "E2e Suite")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user