Closed brianoh closed 11 years ago
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.
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.
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. ...................