mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixes exception missing database
This commit is contained in:
@@ -29,7 +29,11 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
||||
$options["tcp"]["username"],
|
||||
$options["tcp"]["password"]
|
||||
);
|
||||
$client->deleteDatabase($options["tcp"]["database"]);
|
||||
try {
|
||||
$client->deleteDatabase($options["tcp"]["database"]);
|
||||
} catch (\Exception $e) {
|
||||
// nothing...
|
||||
}
|
||||
$client->createDatabase($options["tcp"]["database"]);
|
||||
|
||||
$this->anotherClient = $client;
|
||||
|
||||
Reference in New Issue
Block a user