Skip to content

Local tests fail with error during connection to MSSQL #74

@iliayatsenko

Description

@iliayatsenko

When running tests locally with make test, the error occurs:

There was 1 error:
1) MssqlDblibDbTest: Connection is kept for the whole suite
 Test  tests/unit/Codeception/Module/Db/MssqlDblibDbTest.php:testConnectionIsKeptForTheWholeSuite
                                                                                                        
  [PDOException] SQLSTATE[01002] Adaptive Server connection failed (host.docker.internal) (severity 9)  
                                                                                                        
#1  /var/www/html/tests/unit/Codeception/Module/Db/AbstractDbTest.php:22
#2  /var/www/html/vendor/bin/codecept:119

ERRORS!
Tests: 33, Assertions: 57, Errors: 1.

It is related to the BC-breaking change in MSSQL docker container, see this issue microsoft/mssql-docker#892 and especially this comment microsoft/mssql-docker#892 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions