Skip to content

Commit 0f73eaa

Browse files
committed
PHPC-128: if there is no cleanup uri then skipit
1 parent a600e3d commit 0f73eaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/utils/tools.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ function makeCollectionNameFromFilename($filename)
6161
}
6262

6363
function CLEANUP() {
64+
if (!MONGODB_CLEANUP_URI) {
65+
return;
66+
}
6467
try {
6568
$mc = new MongoDB\Driver\Manager(MONGODB_CLEANUP_URI);
6669
$cmd = new MongoDB\Driver\Command(array("drop" => COLLECTION_NAME));

0 commit comments

Comments
 (0)