Skip to content

Commit 139ee27

Browse files
Refactor destination document handling and clean up after tests
1 parent 6af6a97 commit 139ee27

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Database/Mirror.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ function ($doc) use ($onNext, &$modified) {
824824
$clones[] = $clone;
825825
}
826826

827-
$this->destination->withPreserveDates(
827+
$modified = $this->destination->withPreserveDates(
828828
fn () =>
829829
$this->destination->createOrUpdateDocuments(
830830
$collection,

tests/e2e/Adapter/Scopes/DocumentTests.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5843,5 +5843,7 @@ public function testUpdateDocumentsCount(): void
58435843

58445844
$this->assertCount(4, $newDocs);
58455845
$this->assertEquals(4, $count);
5846+
5847+
$database->deleteCollection($collectionName);
58465848
}
58475849
}

0 commit comments

Comments
 (0)