Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 05c326f

Browse files
authored
PHPLIB-1247 Don't drop the database in ExamplesTest (#1172)
This operation is not allowed on Atlas and each example takes care of cleaning the server state before creating objects.
1 parent 21946b8 commit 05c326f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

‎examples/atlas-search.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
['name' => 'default'],
8282
);
8383

84-
// Wait for the index to be ready.
84+
// Wait for the index to be queryable.
8585
wait(function () use ($collection) {
8686
echo '.';
8787
foreach ($collection->listSearchIndexes() as $index) {

‎tests/ExamplesTest.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ public function setUp(): void
2424
if ($this->isApiVersionRequired()) {
2525
$this->markTestSkipped('Examples are not tested when the server requires specifying an API version.');
2626
}
27-
28-
self::createTestClient()->dropDatabase('test');
2927
}
3028

3129
/** @dataProvider provideExamples */

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /