Skip to content

Commit 81d14c7

Browse files
alcaeusjmikola
andauthored
Skip queryable encryption tests on standalone servers (#1132)
* Skip queryable encryption tests on standalone servers * Use consistent skip message for QE tests Co-authored-by: Jeremy Mikola <jmikola@gmail.com> --------- Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
1 parent 38f6ad4 commit 81d14c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ExamplesTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ public function testQueryableEncryptionExamples(string $file, string $expectedOu
360360

361361
$this->skipIfServerVersion('<', '7.0.0', 'Queryable encryption tests require MongoDB 7.0 or later');
362362

363+
if ($this->isStandalone()) {
364+
$this->markTestSkipped('Queryable encryption requires replica sets');
365+
}
366+
363367
/* Ensure that the key vault, collection under test, and any metadata
364368
* collections are cleaned up before and after the example is run. */
365369
$this->dropCollection('test', 'coll', ['encryptedFields' => []]);

0 commit comments

Comments
 (0)