Skip to content

Commit bfbf5a7

Browse files
committed
PHPLIB-457: Fail with non-retryable error code in change stream spec test
1 parent 7e582c3 commit bfbf5a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Operation/WatchFunctionalTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class WatchFunctionalTest extends FunctionalTestCase
2828
{
2929
use SetUpTearDownTrait;
3030

31+
const INTERRUPTED = 11601;
3132
const NOT_MASTER = 10107;
3233

3334
private static $wireVersionForStartAtOperationTime = 7;
@@ -1295,7 +1296,7 @@ public function testErrorDuringAggregateCommandDoesNotCauseResume()
12951296
$this->configureFailPoint([
12961297
'configureFailPoint' => 'failCommand',
12971298
'mode' => ['times' => 1],
1298-
'data' => ['failCommands' => ['aggregate'], 'errorCode' => self::NOT_MASTER],
1299+
'data' => ['failCommands' => ['aggregate'], 'errorCode' => self::INTERRUPTED],
12991300
]);
13001301

13011302
$this->expectException(CommandException::class);

0 commit comments

Comments
 (0)