From 08a1b75ea240b3c99cff4751a2bc74100b006af6 Mon Sep 17 00:00:00 2001 From: Walter Dal Mut Date: Thu, 11 Sep 2014 15:13:12 +0200 Subject: [PATCH] Fixes exception missing database --- tests/InfluxDB/ClientTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/InfluxDB/ClientTest.php b/tests/InfluxDB/ClientTest.php index e7226baf99..34cb19ad56 100644 --- a/tests/InfluxDB/ClientTest.php +++ b/tests/InfluxDB/ClientTest.php @@ -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;