Skip to content

ZMSTestUtils startMemoryMySQL can cause test failures because db not ready #3292

@Bhuff1

Description

@Bhuff1

Description
DBServiceTest and ZMSBinderTest can fail because the test database is not ready to accept connections yet, see ZMSTestUtils.

This happens in DBServiceTest, for example, because the @BeforeClass method calls mysqld.getJdbcUrl() right away and the database isn't ready.

This does not happen in other tests like ZMSImplTest because there's enough time between @BeforeClass and @BeforeMethod for the database to start.

Proposed Solution
In ZMSTestUtils startMemoryMySQL add a method which verifies the database is ready to accept connections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions