Skip to content

Commit

Permalink
refactor: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli committed Sep 1, 2023
1 parent a1c6596 commit dbbb107
Show file tree
Hide file tree
Showing 3 changed files with 185 additions and 190 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/rabbitmq/bus"
config2 "github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/rabbitmq/config"
"github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/test/containers/testcontainer/gorm"
"github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/test/containers/testcontainer/postgrespxg"
"github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/test/containers/testcontainer/rabbitmq"
gorm2 "gorm.io/gorm"

Expand Down Expand Up @@ -52,7 +51,6 @@ func (a *TestApp) Run(t *testing.T) (result *TestAppResult) {
appBuilder.ProvideModule(catalogs.CatalogsServiceModule)
appBuilder.Decorate(rabbitmq.RabbitmqContainerOptionsDecorator(t, lifetimeCtx))
appBuilder.Decorate(gorm.GormContainerOptionsDecorator(t, lifetimeCtx))
appBuilder.Decorate(postgrespxg.PostgresPgxContainerOptionsDecorator(t, lifetimeCtx))

testApp := appBuilder.Build()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/grpc"
customEcho "github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/http/custom_echo"
"github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/otel"
postgres "github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/postgres_pgx"
"github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/rabbitmq"
"github.com/mehdihadeli/go-ecommerce-microservices/internal/pkg/rabbitmq/configurations"
"go.uber.org/fx"
Expand All @@ -24,7 +23,6 @@ var Module = fx.Module(
customEcho.Module,
grpc.Module,
gormPostgres.Module,
postgres.Module,
otel.Module,
rabbitmq.ModuleFunc(
func() configurations.RabbitMQConfigurationBuilderFuc {
Expand Down
Loading

0 comments on commit dbbb107

Please sign in to comment.