From 90be1488edd797a060e3039a0e3cdd79b1ee4c1b Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Tue, 3 Oct 2023 13:28:40 -0400 Subject: [PATCH] PHPLIB-1270: targetedFailPoint should assert that session is pinned --- tests/SpecTests/Operation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/SpecTests/Operation.php b/tests/SpecTests/Operation.php index 9e7776d09..bb4e42935 100644 --- a/tests/SpecTests/Operation.php +++ b/tests/SpecTests/Operation.php @@ -638,6 +638,7 @@ private function executeForTestRunner(FunctionalTestCase $test, Context $context case 'targetedFailPoint': $test->assertInstanceOf(Session::class, $args['session']); + $test->assertInstanceOf(Server::class, $args['session']->getServer()); $test->configureFailPoint($this->arguments['failPoint'], $args['session']->getServer()); return null;