Skip to content

[Bug]: Pest with --parallel flag not creating multiple databases #1591

@BountyHunter1999

Description

@BountyHunter1999

What Happened

  • I am using php artisan test --parallel --processes=4 flag, based on this.
  • It's creating databases sometimes, but mostly it isn't doing so
  • My need is that the tests will need to have a database connection

How to Reproduce

  1. Run php artisan test --parallel --processes=4
  2. View database activity as a whole with watch -n1 "PGPASSWORD=$POSTGRES_PASSWORD psql -Uuser mydb -c '\l'"

Sample Repository

No response

Pest Version

4.1.3

PHP Version

8.4.0

Operation System

Linux

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions