Skip to content

Error running E2E tests with MySQL: Test server is not running on localhost:3001 #580

@josecelano

Description

@josecelano

Sometimes, we get the error "Test server is not running on localhost:3001" when running the E2E test on the GitHub runner.

I have also got the error running them locally with:

./contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh

However, less frequently than in the runner.

The error is not deterministic. When you rerun the tests, it works. I guess it must be a timeout, or we don't wait enough for the server to be ready to accept requests.

Usually, some tests fail, and some don't.

Error example:

---- e2e::web::api::v1::contexts::category::contract::it_should_not_allow_non_admins_to_delete_categories stdout ----
thread 'e2e::web::api::v1::contexts::category::contract::it_should_not_allow_non_admins_to_delete_categories' panicked at tests/environments/shared.rs:20:9:
Test server is not running on localhost:3001

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions