Skip to content

Commit 38b773e

Browse files
committed
make test repeatable
1 parent 0c1499a commit 38b773e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/DatabaseTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ public function testCreateDatabaseDeleteIt()
4242
{
4343

4444
$database = 'ArangoTestSuiteDatabaseTest01';
45+
46+
try {
47+
$e = null;
48+
Database::delete($this->connection, $database);
49+
} catch (\Exception $e) {
50+
// don't bother us... just give us the $e
51+
}
4552

4653
$response = Database::create($this->connection, $database);
4754

@@ -162,6 +169,13 @@ public function testCreateDatabaseSwitchToItAndCreateAnotherOne()
162169

163170
$database = 'ArangoTestSuiteDatabaseTest01';
164171
$database2 = 'ArangoTestSuiteDatabaseTest02';
172+
173+
try {
174+
$e = null;
175+
Database::delete($this->connection, $database);
176+
} catch (\Exception $e) {
177+
// don't bother us...
178+
}
165179

166180
$response = Database::create($this->connection, $database);
167181

0 commit comments

Comments
 (0)