laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
32.43k stars 10.99k forks source link

Random test failure when ran parallel due VarDumper TypeError #37912

Closed flexchar closed 3 years ago

flexchar commented 3 years ago

Description:

When running php artisan test --parallel random tests may start failing. Recreate databases do not seem to have an affect.

image

However tests always pass when running artisan test.

When a fail occurs it's always the same TypeError of VarDumper class. There are no left dd/ddd/dump code snippets.

TypeError: Symfony\Component\VarDumper\Server\Connection::__construct(): Argument #1 ($host) must be of type string, null given, called in /var/www/vendor/beyondcode/laravel-dump-server/src/DumpServerServiceProvider.php on line 49

/var/www/vendor/symfony/var-dumper/Server/Connection.php:32
/var/www/vendor/beyondcode/laravel-dump-server/src/DumpServerServiceProvider.php:49
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:672
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:649
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:310
/var/www/tests/CreatesApplication.php:18
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestCase.php:108
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestCase.php:85
driesvints commented 3 years ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.