liuggio / fastest

Simple parallel testing execution... with some goodies for functional tests.
MIT License
475 stars 65 forks source link

PDOException: SQLSTATE[HY000] [2002] No such file or directory #31

Closed binarious closed 9 years ago

binarious commented 9 years ago

Hi, I tried to integrate this project into a big functional tested application. But Doctrine does not seem to work:

Caused by
Doctrine\DBAL\Driver\PDOException: SQLSTATE[HY000] [2002] No such file or directory

/Users/hidden/projects/hidden/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:47
/Users/hidden/projects/hidden/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:45
/Users/hidden/projects/hidden/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:360
/Users/hidden/projects/hidden/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1166
/Users/hidden/projects/hidden/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:330
/Users/hidden/projects/hidden/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:340
/Users/hidden/projects/hidden/app/cache/test/jms_diextra/doctrine/EntityManager_5583cf32437bc.php:305
/Users/hidden/projects/hidden/src/hidden/hiddenBundle/Tests/Controller/TmpEntities.php:73
/Users/hidden/projects/hidden/src/hidden/hiddenBundle/Tests/Controller/TmpEntities.php:323
/Users/hidden/projects/hidden/src/hidden/hiddenBundle/Tests/Controller/DogControllerTest.php:12
/Users/hidden/projects/hidden/src/hidden/hiddenBundle/Tests/Controller/DogControllerTest.php:83
/Users/hidden/projects/hidden/src/hidden/hiddenBundle/Tests/Controller/DogControllerTest.php:118

TmpEntities.php:73 does $this->em->flush();.

We get the EntityManager via:

$this->em = static::$kernel->getContainer()
            ->get('doctrine')
            ->getManager()
        ;

Any ideas?

Symfony 2.3 Doctrine 2.4.7 DBAL 2.5.1 PHPUnit 4.7.3 OSX 10.10.3

binarious commented 9 years ago

Had nothing to do with this library.

liuggio commented 9 years ago

@binarious thanks for reporting if you can help me to implement this https://github.com/liuggio/fastest/issues/2 you can push your test faster on OSX (I don't have a mac to try :( )

binarious commented 9 years ago

@liuggio Sure I can do it, but first I have to get fastest running :). Still struggling.