Skip to content

Commit 719a090

Browse files
committed
tests: fix testCacheFallback
1 parent 3692f31 commit 719a090

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/e2e/Adapter/Base.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17883,7 +17883,7 @@ public function testCacheFallback(): void
1788317883
$this->assertCount(1, $database->find('testRedisFallback', [Query::equal('string', ['text📝'])]));
1788417884
$this->assertFalse(($database->getDocument('testRedisFallback', 'doc1'))->isEmpty());
1788517885

17886-
// Check we can modify data
17886+
// Check we cannot modify data
1788717887
try {
1788817888
$database->updateDocument('testRedisFallback', 'doc1', new Document([
1788917889
'string' => 'text📝 updated',
@@ -17905,7 +17905,6 @@ public function testCacheFallback(): void
1790517905
sleep(5);
1790617906

1790717907
// Should return empty results after the delete operation
17908-
$this->assertCount(0, $database->find('testRedisFallback', [Query::equal('string', ['text📝'])]));
17908+
$this->assertCount(1, $database->find('testRedisFallback', [Query::equal('string', ['text📝'])]));
1790917909
}
1791017910
}
17911-
s

0 commit comments

Comments
 (0)