Skip to content

Commit e130249

Browse files
committed
Don't attempt to drop admin database in spec tests
1 parent 37e6396 commit e130249

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/SpecTests/FunctionalTestCase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ protected function dropTestAndOutcomeCollections()
186186
{
187187
$context = $this->getContext();
188188

189+
if ($context->databaseName === 'admin') {
190+
return;
191+
}
192+
189193
if ($context->bucketName !== null) {
190194
$bucket = $context->getGridFSBucket($context->defaultWriteOptions);
191195
$bucket->drop();

0 commit comments

Comments
 (0)