Skip to content

Commit

Permalink
gs: Add linter exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishnaIyer committed Jul 11, 2022
1 parent 43d6b4a commit 415576a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/gatewayserver/gatewayserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ var (
)

func TestGatewayServer(t *testing.T) {
for _, rtc := range []struct {
// The component's gRPC address is bound for each iteration and cannot be used in parallel.
for _, rtc := range []struct { //nolint:paralleltest
Name string
Setup func(context.Context, string, string, gatewayserver.GatewayConnectionStatsRegistry) (*component.Component, *gatewayserver.GatewayServer, error)
PostSetup func(context.Context, *component.Component, *mockis.MockDefinition)
Expand Down Expand Up @@ -1810,7 +1811,7 @@ func TestGatewayServer(t *testing.T) {
}
}

func TestUpdateVersionInfo(t *testing.T) {
func TestUpdateVersionInfo(t *testing.T) { //nolint:paralleltest
a, ctx := test.New(t)

ctx, cancel := context.WithCancel(ctx)
Expand Down Expand Up @@ -1999,8 +2000,9 @@ func TestUpdateVersionInfo(t *testing.T) {

func TestBatchGetStatus(t *testing.T) {
a, ctx := test.New(t)
t.Parallel()

for _, tc := range []struct {
for _, tc := range []struct { //nolint:paralleltest
Name string
WithRedis bool
}{
Expand Down Expand Up @@ -2114,7 +2116,6 @@ func TestBatchGetStatus(t *testing.T) {
cancel(token.Error())
return
}

}
}
}()
Expand Down

0 comments on commit 415576a

Please sign in to comment.