Skip to content

Commit

Permalink
test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Oct 1, 2024
1 parent 3eb9460 commit b3f4382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ jobs:
CURIO_HARMONYDB_HOSTS: ${{ steps.get-yb-ip.outputs.yb_ip }} # Use internal IP for DB host
run: |
echo "Using YugabyteDB Container IP: ${{env.CURIO_HARMONYDB_HOSTS}}"
export CURIO_HARMONYDB_HOSTS=${{ env.CURIO_HARMONYDB_HOSTS }}
go test -v --tags=debug -timeout 30m ${{ matrix.test-suite.target }}
- name: Stop YugabyteDB container
Expand Down
3 changes: 2 additions & 1 deletion harmony/harmonydb/harmonydb.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ func envElse(env, els string) string {
}

func NewFromConfigWithITestID(t *testing.T, id ITestID) (*DB, error) {
fmt.Printf("CURIO_HARMONYDB_HOSTS: %s\n", os.Getenv("CURIO_HARMONYDB_HOSTS"))
db, err := New(
[]string{envElse("CURIO_HARMONYDB_HOSTS", "127.0.0.1")},
"yugabyte",
"yugabyte",
"yugabyte",
envElse("CURIO_HARMONYDB_PORT", "5433"),
"5433",
id,
)
if err != nil {
Expand Down

0 comments on commit b3f4382

Please sign in to comment.