Skip to content

Commit

Permalink
imports issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr committed Mar 1, 2023
1 parent fa45b5d commit 40d69cb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/rudderlabs/rudder-server/warehouse/integrations/deltalake"
"github.com/rudderlabs/rudder-server/warehouse/integrations/mssql"
"github.com/rudderlabs/rudder-server/warehouse/integrations/postgres"
postgreslegacy "github.com/rudderlabs/rudder-server/warehouse/integrations/postgres-legacy"
"github.com/rudderlabs/rudder-server/warehouse/integrations/redshift"
"github.com/rudderlabs/rudder-server/warehouse/integrations/snowflake"

Expand Down Expand Up @@ -345,6 +346,7 @@ func runAllInit() {
azuresynapse.Init()
mssql.Init()
postgres.Init()
postgreslegacy.Init()
redshift.Init()
snowflake.Init()
deltalake.Init()
Expand Down
14 changes: 7 additions & 7 deletions warehouse/integrations/postgres-legacy/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"strings"
"testing"

"github.com/rudderlabs/rudder-server/warehouse/integrations/testhelper"
postgreslegacy "github.com/rudderlabs/rudder-server/warehouse/integrations/postgres-legacy"

"github.com/rudderlabs/rudder-server/warehouse/integrations/postgres"
"github.com/rudderlabs/rudder-server/warehouse/integrations/testhelper"

"github.com/rudderlabs/rudder-server/warehouse/tunnelling"

Expand All @@ -29,10 +29,10 @@ func TestIntegrationPostgresThroughTunnelling(t *testing.T) {
misc.Init()
validations.Init()
warehouseutils.Init()
postgres.Init()
postgreslegacy.Init()

configurations := testhelper.PopulateTemplateConfigurations()
db, err := postgres.Connect(postgres.Credentials{
db, err := postgreslegacy.Connect(postgreslegacy.Credentials{
DBName: configurations["privatePostgresDatabase"],
Password: configurations["privatePostgresPassword"],
User: configurations["privatePostgresUser"],
Expand Down Expand Up @@ -125,9 +125,9 @@ func TestIntegrationPostgres(t *testing.T) {

t.Parallel()

postgres.Init()
postgreslegacy.Init()

db, err := postgres.Connect(postgres.Credentials{
db, err := postgreslegacy.Connect(postgreslegacy.Credentials{
DBName: "rudderdb",
Password: "rudder-password",
User: "rudder",
Expand Down Expand Up @@ -234,7 +234,7 @@ func TestConfigurationValidationPostgres(t *testing.T) {
misc.Init()
validations.Init()
warehouseutils.Init()
postgres.Init()
postgreslegacy.Init()

configurations := testhelper.PopulateTemplateConfigurations()
destination := backendconfig.DestinationT{
Expand Down
3 changes: 3 additions & 0 deletions warehouse/warehouse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"testing"
"time"

postgreslegacy "github.com/rudderlabs/rudder-server/warehouse/integrations/postgres-legacy"

"github.com/rudderlabs/rudder-server/warehouse/integrations/postgres"
"github.com/rudderlabs/rudder-server/warehouse/internal/repo"

Expand Down Expand Up @@ -61,6 +63,7 @@ func initWarehouse() {
validations.Init()
misc.Init()
postgres.Init()
postgreslegacy.Init()
}

func getMockStats(g GinkgoTInterface) (*mock_stats.MockStats, *mock_stats.MockMeasurement) {
Expand Down

0 comments on commit 40d69cb

Please sign in to comment.