Skip to content

Commit

Permalink
remove nolints
Browse files Browse the repository at this point in the history
  • Loading branch information
FoseFx committed Dec 27, 2024
1 parent 508602c commit f8716c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
15 changes: 10 additions & 5 deletions services/property-svc/internal/property-view/api/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ func setup() (
return ctx, client, aggregateStore, dbMock, teardown
}

//nolint:paralleltest
func TestPropertyViewGrpcService_UpdatePropertyViewRule_Validation(t *testing.T) {
t.Parallel()

ctx, client, _, dbMock, teardown := setup()
defer teardown()

Expand Down Expand Up @@ -238,8 +239,9 @@ func TestPropertyViewGrpcService_UpdatePropertyViewRule_AllEmptyNoEffect(t *test
as.ExpectToBeEmpty(t)
}

//nolint:paralleltest
func TestPropertyViewGrpcService_UpdatePropertyViewRule_TaskPropertyMatcher_GreenPath_Created(t *testing.T) {
t.Parallel()

ctx, client, as, dbMock, teardown := setup()
defer teardown()

Expand Down Expand Up @@ -307,8 +309,9 @@ func TestPropertyViewGrpcService_UpdatePropertyViewRule_TaskPropertyMatcher_Gree
})
}

//nolint:paralleltest
func TestPropertyViewGrpcService_UpdatePropertyViewRule_PatientPropertyMatcher_GreenPath_Created(t *testing.T) {
t.Parallel()

ctx, client, as, dbMock, teardown := setup()
defer teardown()

Expand Down Expand Up @@ -376,8 +379,9 @@ func TestPropertyViewGrpcService_UpdatePropertyViewRule_PatientPropertyMatcher_G
})
}

//nolint:paralleltest
func TestPropertyViewGrpcService_UpdatePropertyViewRule_TaskPropertyMatcher_GreenPath_Updated(t *testing.T) {
t.Parallel()

ctx, client, as, dbMock, teardown := setup()
defer teardown()

Expand Down Expand Up @@ -474,8 +478,9 @@ func TestPropertyViewGrpcService_UpdatePropertyViewRule_TaskPropertyMatcher_Gree
})
}

//nolint:paralleltest
func TestPropertyViewGrpcService_UpdatePropertyViewRule_PatientPropertyMatcher_GreenPath_Updated(t *testing.T) {
t.Parallel()

ctx, client, as, dbMock, teardown := setup()
defer teardown()

Expand Down
5 changes: 3 additions & 2 deletions services/tasks-svc/internal/patient/api/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
"context"
"decaying_lru"
pb "gen/services/tasks_svc/v1"
"github.com/pashagolub/pgxmock/v4"
"hwauthz/test"
"hwdb"
hwes_test "hwes/test"
"testing"
"time"

"github.com/pashagolub/pgxmock/v4"

"github.com/go-redis/redismock/v9"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
Expand All @@ -39,7 +40,7 @@ func server() (context.Context, pb.PatientServiceClient, func()) {
if err != nil {
panic(err)
}
ctx = hwdb.WithDB(context.Background(), dbMock)
ctx = hwdb.WithDB(ctx, dbMock)

// Start Server
grpcServer := grpc.NewServer(common.DefaultServerOptions(ctx)...)
Expand Down

0 comments on commit f8716c2

Please sign in to comment.