Always return 1 for health in MongoClient::getHosts
@@ -45,6 +45,7 @@ jobs:
# Test against legacy driver to ensure validity of the test suite
- stage: Test
php: 5.6
+ env: DRIVER_VERSION="1.7.5"
install:
- yes '' | pecl -q install -f mongo
@@ -222,7 +222,7 @@ class MongoClient
$results[$key] = [
'host' => $server->getHost(),
'port' => $server->getPort(),
- 'health' => (int) $info['ok'],
+ 'health' => 1,
'state' => $state,
'ping' => $server->getLatency(),
'lastPing' => null,