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

Allow setting db with use_postgresql tests #45178

Merged
merged 1 commit into from May 26, 2022

Commits on May 26, 2022

  1. Allow setting db with use_postgresql tests

    If more than one test is using `use_postgresql` for it's tests and both
    need to run `db:create` those tests will fail often due to them
    running in parallel. I tried turning off parallelization for these tests
    and they still ran in separate processes. Ultimately though, turning off
    parallelization means we don't aren't testing parallelization. Instead I've
    added `Process.pid` to the database name so it creates a database
    specifically for that test. For cases where we need to set an explict
    name a name can be passed in.
    
    I also added an ensure to one of the tests so that the databases get
    cleaned up and not left behind.
    
    Fixes rails#45114
    Fixes rails#45158
    eileencodes committed May 26, 2022
    Configuration menu
    Copy the full SHA
    58f6710 View commit details
    Browse the repository at this point in the history