Skip to content

Commit 502d0df

Browse files
updated tests
1 parent 073165e commit 502d0df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/Adapter/Scopes/SchemalessTests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3098,8 +3098,8 @@ public function testStringAndDateWithTTL(): void
30983098
$this->assertEquals('another_random_string_xyz', $expiresAt4);
30993099
$this->assertTrue(is_string($expiresAt4));
31003100

3101-
// At this point, the expired document is logically expired from read perspective.
3102-
// We don't rely on MongoDB TTL monitor timing here anymore.
3101+
$remainingDocs = $database->find($col);
3102+
$remainingIds = array_map(fn ($doc) => $doc->getId(), $remainingDocs);
31033103

31043104
// Documents with random strings should still exist (TTL doesn't affect non-datetime values)
31053105
$this->assertContains('doc_string_random', $remainingIds);

0 commit comments

Comments
 (0)