If the error above happens when you run integration, unit or api-functional tests the first thing to check is your phpunit.xml configuration file.
Make sure to pull the latest changes from Magento repository and compare your phpunit.xml vs phpunit.xml.dist, phpunit_graphql.xml vs phpunit_graphql.xml.dist, etc