When running a build of my Laravel project, the migrations to a sqlite database complete successfully. However, when it gets to the test, I get the following error:
1) NoAuthCest: Try to test
Test tests/functional/NoAuthCest.php:tryToTest
[PDOException] SQLSTATE[HY000] [2002] Connection refused
#1 /home/circleci/project/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
#2 /home/circleci/project/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:100
#3 /home/circleci/project/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:50
#4 /home/circleci/project/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24
#5 /home/circleci/project/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182
#6 Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}
#7 /home/circleci/project/vendor/laravel/framework/src/Illuminate/Database/Connection.php:924
#8 /home/circleci/project/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php:157
#9 /home/circleci/project/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php:125
#10 /home/circleci/project/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php:105
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
I’m at a complete loss with where to head next, any help would be much appreciated.
Thanks,
Thomas