Skip to content

Commit

Permalink
1. fixed postgresql connection
Browse files Browse the repository at this point in the history
  • Loading branch information
iasergunin committed Dec 15, 2023
1 parent 8b57256 commit aad94a8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ jobs:
- name: Tests with real databases
run: make test.coverage.with_real_db

- name: Code coverage data
run: |
set -x
COVERAGE_TOTAL=`go tool covdata func -i=./coverage | grep total | grep -Eo '[0-9]+\.[0-9]+'`
echo "COVERAGE_TOTAL=$COVERAGE_TOTAL" >> $GITHUB_ENV
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion drivers/pgxv4/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func Example() {
ctx := context.Background()

uri := fmt.Sprintf("postgres://%s:%s@%s:%d/%s",
"user", "pass", "localhost", 5432, "drivers",
"user", "pass", "localhost", 5432, "db",
)

pool, err := pgxpool.Connect(ctx, uri)
Expand Down
2 changes: 1 addition & 1 deletion drivers/pgxv5/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func Example() {
ctx := context.Background()

uri := fmt.Sprintf("postgres://%s:%s@%s:%d/%s",
"user", "pass", "localhost", 5432, "drivers",
"user", "pass", "localhost", 5432, "db",
)

pool, err := pgxpool.New(ctx, uri)
Expand Down

0 comments on commit aad94a8

Please sign in to comment.