Speed up tests (#14421)

Don't re-load os yaml every time
This commit is contained in:
Tony Murray 2022-10-03 11:59:54 -05:00 committed by GitHub
parent 0e14dea12d
commit 53ab0f775d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class Poller
$polled = 0;
$this->printHeader();
if (Debug::isEnabled()) {
if (Debug::isEnabled() && ! defined('PHPUNIT_RUNNING')) {
\LibreNMS\Util\OS::updateCache(true); // Force update of OS Cache
}

View File

@ -40,5 +40,6 @@
<server name="QUEUE_CONNECTION" value="sync"/>
<server name="SESSION_DRIVER" value="array"/>
<server name="DB_CONNECTION" value="testing"/>
<const name="PHPUNIT_RUNNING" value="true"/>
</php>
</phpunit>