Skip to content

Commit

Permalink
Use assertNotEquals when comparing cursor IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Sep 23, 2024
1 parent 9864dbc commit df78dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Operation/WatchFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ public function testOriginalReadPreferenceIsPreservedOnResume(): void
$this->forceChangeStreamResume();

$changeStream->next();
$this->assertNotSame($previousCursorId, $changeStream->getCursorId());
$this->assertNotEquals($previousCursorId, $changeStream->getCursorId());

$getCursor = Closure::bind(
fn () => $this->iterator->getInnerIterator(),
Expand Down

0 comments on commit df78dcf

Please sign in to comment.