Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: specify custom config in dbm (#5550)
Was having some trouble running these migration tests locally due to `dbm` not correctly picking up the passed in config. This fixes it by setting the custom config property after it has been initialized, always overriding any wrong values. PS: I think I found the issue. `dbm` was prioritizing my `DATABASE_URL` for some reason, as I started having issues when it was set, and stopped having issues when I unset it. I still think this is a good change, as it prevents similar hard-to-debug issues in the future. To help clarify this, running this locally: - `export DATABASE_URL=postgres://unleash_user:passord@localhost:5432/unleash` - `yarn test dedupe-permissions` Fails on `main`, but passes on this branch. For some reason the `dbm` instance prioritizes whatever is set in `DATABASE_URL` instead of the options that are passed in `getInstance`.
- Loading branch information