Skip to content

Commit

Permalink
temp commit for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyamsinghal committed Dec 21, 2024
1 parent 01eaf14 commit a0a7bda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yb-voyager/src/srcdb/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ func TestMain(m *testing.M) {
defer cancel()

postgresContainer := testcontainers.NewTestContainer("postgresql", nil)
utils.PrintAndLog("calling postgresContainer.Start() from srcdb/main_test.go\n")
err := postgresContainer.Start(ctx)
if err != nil {
utils.ErrExit("Failed to start postgres container: %v", err)
}
utils.PrintAndLog("done postgresContainer.Start() from tgtdb/main_test.go\n")
host, port, err := postgresContainer.GetHostPort()
if err != nil {
utils.ErrExit("%v", err)
Expand Down
2 changes: 2 additions & 0 deletions yb-voyager/src/tgtdb/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ func TestMain(m *testing.M) {
defer cancel()

postgresContainer := testcontainers.NewTestContainer("postgresql", nil)
utils.PrintAndLog("calling postgresContainer.Start() from tgtdb/main_test.go\n")
err := postgresContainer.Start(ctx)
if err != nil {
utils.ErrExit("Failed to start postgres container: %v", err)
}
utils.PrintAndLog("done postgresContainer.Start() from tgtdb/main_test.go\n")
host, port, err := postgresContainer.GetHostPort()
if err != nil {
utils.ErrExit("%v", err)
Expand Down

0 comments on commit a0a7bda

Please sign in to comment.