Skip to content

Commit

Permalink
remove parallel test in config package
Browse files Browse the repository at this point in the history
Signed-off-by: kevindiu <kevin_diu@yahoo.com.hk>
  • Loading branch information
kevindiu committed Jul 2, 2021
1 parent f08d700 commit 86b50d4
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 89 deletions.
4 changes: 0 additions & 4 deletions internal/config/backoff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
)

func TestBackoff_Bind(t *testing.T) {
t.Parallel()
type fields struct {
InitialDuration string
BackoffTimeLimit string
Expand Down Expand Up @@ -116,7 +115,6 @@ func TestBackoff_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand All @@ -143,7 +141,6 @@ func TestBackoff_Bind(t *testing.T) {
}

func TestBackoff_Opts(t *testing.T) {
t.Parallel()
type fields struct {
InitialDuration string
BackoffTimeLimit string
Expand Down Expand Up @@ -213,7 +210,6 @@ func TestBackoff_Opts(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc()
Expand Down
2 changes: 0 additions & 2 deletions internal/config/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
)

func TestBackupManager_Bind(t *testing.T) {
t.Parallel()
type fields struct {
Client *GRPCClient
}
Expand Down Expand Up @@ -152,7 +151,6 @@ func TestBackupManager_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc()
Expand Down
2 changes: 0 additions & 2 deletions internal/config/blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,6 @@ func TestS3Config_Bind(t *testing.T) {
}

func TestCloudStorageConfig_Bind(t *testing.T) {
t.Parallel()
type fields struct {
URL string
Client *CloudStorageClient
Expand Down Expand Up @@ -664,7 +663,6 @@ func TestCloudStorageConfig_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand Down
4 changes: 0 additions & 4 deletions internal/config/cassandra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
)

func TestCassandra_Bind(t *testing.T) {
t.Parallel()
type fields struct {
Hosts []string
CQLVersion string
Expand Down Expand Up @@ -327,7 +326,6 @@ func TestCassandra_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand Down Expand Up @@ -387,7 +385,6 @@ func TestCassandra_Bind(t *testing.T) {
}

func TestCassandra_Opts(t *testing.T) {
t.Parallel()
type fields struct {
Hosts []string
CQLVersion string
Expand Down Expand Up @@ -859,7 +856,6 @@ func TestCassandra_Opts(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand Down
2 changes: 0 additions & 2 deletions internal/config/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
)

func TestClient_Bind(t *testing.T) {
t.Parallel()

type fields struct {
Net *Net
Expand Down Expand Up @@ -77,7 +76,6 @@ func TestClient_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())

if test.beforeFunc != nil {
Expand Down
4 changes: 0 additions & 4 deletions internal/config/discoverer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
)

func TestDiscoverer_Bind(t *testing.T) {
t.Parallel()
type fields struct {
Name string
Namespace string
Expand Down Expand Up @@ -134,7 +133,6 @@ func TestDiscoverer_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand All @@ -160,7 +158,6 @@ func TestDiscoverer_Bind(t *testing.T) {
}

func TestDiscovererClient_Bind(t *testing.T) {
t.Parallel()
type fields struct {
Duration string
Client *GRPCClient
Expand Down Expand Up @@ -281,7 +278,6 @@ func TestDiscovererClient_Bind(t *testing.T) {

for _, test := range tests {
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand Down
4 changes: 0 additions & 4 deletions internal/config/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
)

func TestEgressFilter_Bind(t *testing.T) {
t.Parallel()
type fields struct {
Client *GRPCClient
DistanceFilters []string
Expand Down Expand Up @@ -154,7 +153,6 @@ func TestEgressFilter_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand All @@ -180,7 +178,6 @@ func TestEgressFilter_Bind(t *testing.T) {
}

func TestIngressFilter_Bind(t *testing.T) {
t.Parallel()
type fields struct {
Client *GRPCClient
Vectorizer string
Expand Down Expand Up @@ -356,7 +353,6 @@ func TestIngressFilter_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand Down
2 changes: 0 additions & 2 deletions internal/config/gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
)

func TestGateway_Bind(t *testing.T) {
t.Parallel()
type fields struct {
AgentPort int
AgentName string
Expand Down Expand Up @@ -234,7 +233,6 @@ func TestGateway_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand Down
12 changes: 0 additions & 12 deletions internal/config/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
)

func Test_newGRPCClientConfig(t *testing.T) {
t.Parallel()
type want struct {
want *GRPCClient
}
Expand Down Expand Up @@ -65,7 +64,6 @@ func Test_newGRPCClientConfig(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc()
Expand All @@ -86,7 +84,6 @@ func Test_newGRPCClientConfig(t *testing.T) {
}

func TestGRPCClient_Bind(t *testing.T) {
t.Parallel()
type fields struct {
Addrs []string
HealthCheckDuration string
Expand Down Expand Up @@ -285,7 +282,6 @@ func TestGRPCClient_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand Down Expand Up @@ -315,7 +311,6 @@ func TestGRPCClient_Bind(t *testing.T) {
}

func TestGRPCClientKeepalive_Bind(t *testing.T) {
t.Parallel()
type fields struct {
Time string
Timeout string
Expand Down Expand Up @@ -409,7 +404,6 @@ func TestGRPCClientKeepalive_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand All @@ -435,7 +429,6 @@ func TestGRPCClientKeepalive_Bind(t *testing.T) {
}

func TestCallOption_Bind(t *testing.T) {
t.Parallel()
type fields struct {
WaitForReady bool
MaxRetryRPCBufferSize int
Expand Down Expand Up @@ -497,7 +490,6 @@ func TestCallOption_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc()
Expand All @@ -524,7 +516,6 @@ func TestCallOption_Bind(t *testing.T) {
}

func TestDialOption_Bind(t *testing.T) {
t.Parallel()
type fields struct {
WriteBufferSize int
ReadBufferSize int
Expand Down Expand Up @@ -670,7 +661,6 @@ func TestDialOption_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand Down Expand Up @@ -708,7 +698,6 @@ func TestDialOption_Bind(t *testing.T) {
}

func TestGRPCClient_Opts(t *testing.T) {
t.Parallel()
type fields struct {
Addrs []string
HealthCheckDuration string
Expand Down Expand Up @@ -1063,7 +1052,6 @@ func TestGRPCClient_Opts(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc()
Expand Down
2 changes: 0 additions & 2 deletions internal/config/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
)

func TestIndexer_Bind(t *testing.T) {
t.Parallel()
type fields struct {
AgentPort int
AgentName string
Expand Down Expand Up @@ -196,7 +195,6 @@ func TestIndexer_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())

if test.beforeFunc != nil {
Expand Down
2 changes: 0 additions & 2 deletions internal/config/lb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
)

func TestLB_Bind(t *testing.T) {
t.Parallel()
type fields struct {
AgentPort int
AgentName string
Expand Down Expand Up @@ -182,7 +181,6 @@ func TestLB_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand Down
2 changes: 0 additions & 2 deletions internal/config/meta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
)

func TestMeta_Bind(t *testing.T) {
t.Parallel()
type fields struct {
Host string
Port uint16
Expand Down Expand Up @@ -205,7 +204,6 @@ func TestMeta_Bind(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc(tt)
Expand Down
2 changes: 0 additions & 2 deletions internal/config/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ func TestMySQL_Bind(t *testing.T) {
}

func TestMySQL_Opts(t *testing.T) {
t.Parallel()
type fields struct {
DB string
Network string
Expand Down Expand Up @@ -495,7 +494,6 @@ func TestMySQL_Opts(t *testing.T) {
for _, tc := range tests {
test := tc
t.Run(test.name, func(tt *testing.T) {
tt.Parallel()
defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
if test.beforeFunc != nil {
test.beforeFunc()
Expand Down
Loading

0 comments on commit 86b50d4

Please sign in to comment.