Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with test #23

Closed
brianoh opened this issue Sep 19, 2013 · 2 comments
Closed

Problem with test #23

brianoh opened this issue Sep 19, 2013 · 2 comments

Comments

@brianoh
Copy link

brianoh commented Sep 19, 2013

I'm not very experienced with Go at this stage, and running tests, however running "go test" using Win8 and latest Go version (go1.1.2 windows/amd64), I get :

github.com/JackC/pgx_test

c:\users\boh\golang\mygo\pkg\src\github.com\JackC\pgx\bench_test.go:605: undefin
ed: defaultConnectionParameters
c:\users\boh\golang\mygo\pkg\src\github.com\JackC\pgx\connection_pool_test.go:13
: undefined: defaultConnectionParameters
c:\users\boh\golang\mygo\pkg\src\github.com\JackC\pgx\connection_pool_test.go:28
: undefined: defaultConnectionParameters
etc. ...................

@jackc
Copy link
Owner

jackc commented Sep 19, 2013

My guess is connection_settings_test.go is not set up. pgx requires credentials to connect to a PostgreSQL server. Open connection_settings_test.go.example and do a "save as" without the example. Ensure you have valid credentials in that file. There is more info at the bottom of the readme.

Let me know if this solves the problem.

@brianoh
Copy link
Author

brianoh commented Sep 19, 2013

Yes, that fixed it thanks. I created the user "pgx_md5", the Database "pgx_test", and saved the file as described. I'm yet to examine the test programs to see what's happening.

@brianoh brianoh closed this as completed Sep 20, 2013
jackc added a commit that referenced this issue Dec 4, 2021
Clean go.sum file to remove old version of pgx v3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants