PHPLIB-457: Fail with non-retryable error code in change stream spec test

parent 7e582c38
......@@ -28,6 +28,7 @@ class WatchFunctionalTest extends FunctionalTestCase
{
use SetUpTearDownTrait;
const INTERRUPTED = 11601;
const NOT_MASTER = 10107;
private static $wireVersionForStartAtOperationTime = 7;
......@@ -1295,7 +1296,7 @@ class WatchFunctionalTest extends FunctionalTestCase
$this->configureFailPoint([
'configureFailPoint' => 'failCommand',
'mode' => ['times' => 1],
'data' => ['failCommands' => ['aggregate'], 'errorCode' => self::NOT_MASTER],
'data' => ['failCommands' => ['aggregate'], 'errorCode' => self::INTERRUPTED],
]);
$this->expectException(CommandException::class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment