Skip to content

Commit c81c593

Browse files
committed
PHPC-1331: Use literal value in ReadPreference::__set_state() error test
This value is closer to the valid upper bound and consistent with the ctor error test for maxStalenessSeconds.
1 parent 4a116c5 commit c81c593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/readPreference/readpreference-set_state_error-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ MongoDB\Driver\ReadPreference::__set_state() requires correct data types and val
88
require_once __DIR__ . '/../utils/tools.php';
99

1010
echo throws(function() {
11-
MongoDB\Driver\ReadPreference::__set_state(['mode' => 'secondary', 'maxStalenessSeconds' => pow(2, 32) + 1]);
11+
MongoDB\Driver\ReadPreference::__set_state(['mode' => 'secondary', 'maxStalenessSeconds' => 2147483648]);
1212
}, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n";
1313

1414
?>

0 commit comments

Comments
 (0)