From df78dcfd04213b8f9464363cf5957b7a2a3183b2 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Mon, 23 Sep 2024 09:08:31 +0200 Subject: [PATCH] Use assertNotEquals when comparing cursor IDs --- tests/Operation/WatchFunctionalTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Operation/WatchFunctionalTest.php b/tests/Operation/WatchFunctionalTest.php index e6d394697..69f6bbf0b 100644 --- a/tests/Operation/WatchFunctionalTest.php +++ b/tests/Operation/WatchFunctionalTest.php @@ -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(),