Skip to content

Commit

Permalink
Akasdkladskasd
Browse files Browse the repository at this point in the history
  • Loading branch information
EinKrebs committed Mar 29, 2024
1 parent 4f0f85f commit a93fb41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/feature/spqr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ func (tctx *testContext) connectCoordinatorWithCredentials(username string, pass

func (tctx *testContext) connectRouterConsoleWithCredentials(username string, password string, addr string, timeout time.Duration) (*sqlx.DB, error) {
ping := func(db *sqlx.DB) bool {
fmt.Printf("pinging %#v", db)
_, err := db.Exec("SHOW key_ranges")
if err != nil {
log.Printf("failed to ping router console at %s: %s", addr, err)
Expand All @@ -245,6 +246,7 @@ func (tctx *testContext) connectorWithCredentials(username string, password stri
connCfg.RuntimeParams["client_encoding"] = "UTF8"
connCfg.RuntimeParams["standard_conforming_strings"] = "on"
connStr := stdlib.RegisterConnConfig(connCfg)
fmt.Printf("connecting to \"%s\"", dsn)
db, err := sqlx.Open("pgx", connStr)
if err != nil {
return nil, err
Expand Down

0 comments on commit a93fb41

Please sign in to comment.