-
Notifications
You must be signed in to change notification settings - Fork 65
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
Timeouts not working for exports #521
Comments
(assigning to @dgaubert , for you to prioritize and dispatch at your leisure) |
Hey! That's because PGBoucer has its internal pool of connection against Postgres, before executing those tests we need to set a proper timeout for that user/database. it uses one connection of PGBouncer pool but rest of them keep the connection with the previous settings and the timeout will not be applied. In fact, we had to clean up connections from the internal |
And using sh can make some things fail. E.g: ``` [[: not found ```
This sends a PAUSE and RESUME to pgbouncer (in case there's one) before and after executing tests, to make sure new connections are established in the tests. This may be especially important when role or session settings are modified in the DB (same happens in prod, BTW).
This is needed to make the setup a little bit more robust: when trying to delete the test database, it won't be able if there are "idle sessions" in the db (that is, connections from pgbouncer to the test database). Otherwise it fails when trying to create the database, because there's already one with the same name.
At lest the tests do not pass when I run against
pgbouncer
.Steps to reproduce
pgbouncer
listening on port6432
.config/environments/test.js
to setmodule.exports.db_port = '6432';
cause at some point the diffs display the bodies containing SHP and other binary formats, which screw my terminal output, so that way I could inspect the
/tmp/test.out
file.Expected result
All the tests pass.
Actual result
Here's an excerpt of the results I got:
(all the failures are related to exports)
The text was updated successfully, but these errors were encountered: