Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed test cases.

  • Loading branch information...
commit b4bb82ee101228202e7915b5be3740a736143565 1 parent 5d5590e
Derick Rethans authored
1  tests/others/php-270-arginfo.phpt
View
@@ -27,6 +27,7 @@ Mongo
Method __construct expects 2 parameters
0: server (optional)
1: options (optional)
+ Method getConnections expects 0 parameters
Method connect expects 0 parameters
Method connectUtil expects 0 parameters
Method __toString expects 0 parameters
4 tests/standalone/bug00489.phpt
View
@@ -1,5 +1,5 @@
--TEST--
-Test for PHP-489: is_master() crashes for standalone servers
+Test for PHP-489: ismaster() crashes for standalone servers
--SKIPIF--
<?php require_once dirname(__FILE__) . "/skipif.inc"; ?>
--FILE--
@@ -20,7 +20,7 @@ Notice: CON WARN: is_ping: last pinged at %d; time: 0ms in %s line %d
Notice: CON WARN: Host does not seem to be a replicaset member (%s:%d) in %s on line %d
-Notice: CON WARN: discover_topology: is_master return with an error for %s:%d: [Host does not seem to be a replicaset member (%s:%d)] in %s on line %d
+Notice: CON WARN: discover_topology: ismaster return with an error for %s:%d: [Host does not seem to be a replicaset member (%s:%d)] in %s on line %d
string(26) "No candidate servers found"
I'm alive!
==DONE==
19 tests/standalone/log-1.phpt
View
@@ -24,13 +24,26 @@ CON INFO: mongo_get_read_write_connection: finding a STANDALONE connection
CON INFO: connection_create: creating new connection for %s:%d
CON INFO: get_server_flags: start
CON FINE: send_packet: read from header: 36
-CON FINE: send_packet: data_size: 51
+CON FINE: send_packet: data_size: %d
CON FINE: get_server_flags: setting maxBsonObjectSize to 16777216
-CON INFO: get_connection_single: pinging %s:%d;X;%d
-CON FINE: is_ping: start
+CON FINE: is_ping: pinging %s:%d;X;%d
CON FINE: send_packet: read from header: 36
CON FINE: send_packet: data_size: 17
CON WARN: is_ping: last pinged at %d; time: %dms
+REPLSET FINE: finding candidate servers
+REPLSET FINE: - all servers
+REPLSET FINE: filter_connections: adding connections:
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
+REPLSET FINE: filter_connections: done
+REPLSET FINE: sorting servers by priority and ping time
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
+REPLSET FINE: sorting servers: done
+REPLSET FINE: selecting near servers
+REPLSET FINE: selecting near servers: nearest is 0ms
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
+REPLSET FINE: selecting near server: done
+REPLSET FINE: pick server: random element 0
+REPLSET INFO: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
Notice: CON FINE: mongo_connection_destroy: Closing socket for %s:%d;X;%d. in Unknown on line 0
16 tests/standalone/log-4.phpt
View
@@ -32,10 +32,26 @@ Warnings:
CON WARN: is_ping: last pinged at %d; time: %dms
Fine:
CON FINE: found connection %s:%d;X;%d (looking for %s:%d;X;%d)
+CON FINE: is_ping: pinging %s:%d;X;%d
+CON FINE: is_ping: skipping: last ran at %d, now: %d, time left: 5
+REPLSET FINE: finding candidate servers
+REPLSET FINE: - all servers
+REPLSET FINE: filter_connections: adding connections:
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
+REPLSET FINE: filter_connections: done
+REPLSET FINE: sorting servers by priority and ping time
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
+REPLSET FINE: sorting servers: done
+REPLSET FINE: selecting near servers
+REPLSET FINE: selecting near servers: nearest is 0ms
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
+REPLSET FINE: selecting near server: done
+REPLSET FINE: pick server: random element 0
Info:
PARSE INFO: Parsing mongodb://%s:%d
PARSE INFO: - Found node: %s:%d
PARSE INFO: - Connection type: STANDALONE
CON INFO: mongo_get_read_write_connection: finding a STANDALONE connection
+REPLSET INFO: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
Notice: CON INFO: freeing connection %s:%d;X;%d in Unknown on line 0
3  tests/standalone/mongocollection-find-001.phpt
View
@@ -3,8 +3,7 @@ MongoCollection::findOne() with multiple queries.
--DESCRIPTION--
Here we test whether the ping is only done once every 5 seconds.
--SKIPIF--
-<?php require_once dirname(__FILE__) . "/skipif.inc";?>
-<?php if (isauth()) { die("skip The test suite doesn't support two databases at the moment"); } ?>
+skip Manual test
--FILE--
<?php
function error_handler($code, $message)
1  tests/standalone/mongocollection-insert-001.phpt
View
@@ -3,6 +3,7 @@ MongoCollection::insert() with ReplicaSet failover.
--DESCRIPTION--
Here we test whether the ping is only done once every 5 seconds.
--SKIPIF--
+skip Manual test
--FILE--
<?php
function error_handler($code, $message)
Please sign in to comment.
Something went wrong with that request. Please try again.