summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2015-11-09 15:31:33 -0500
committersamantharitter <samantha.ritter@10gen.com>2015-11-09 18:00:23 -0500
commit6dac61e3f9a3d3de7fe7126d8f24c2311a2b8684 (patch)
tree089f46069f59dba647da1da6e773122585946cea
parentcd2333af431e20af8e55739b5e2e8778d55e70f7 (diff)
downloadmongo-6dac61e3f9a3d3de7fe7126d8f24c2311a2b8684.tar.gz
SERVER-21365 Fix expectations in conn_pool_stats.js
-rw-r--r--jstests/sharding/conn_pool_stats.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/conn_pool_stats.js b/jstests/sharding/conn_pool_stats.js
index 52a4b38641d..ef15f73bdab 100644
--- a/jstests/sharding/conn_pool_stats.js
+++ b/jstests/sharding/conn_pool_stats.js
@@ -23,7 +23,7 @@ assert("numAScopedConnection" in dbclient);
assert("totalInUse" in dbclient);
assert("totalAvailable" in dbclient);
assert("totalCreated" in dbclient);
-assert.eq(dbclient["totalInUse"] + dbclient["totalAvailable"], dbclient["totalCreated"]);
+assert.lte(dbclient["totalInUse"] + dbclient["totalAvailable"], dbclient["totalCreated"], tojson(dbclient));
// Stats from ASIO pool
assert("NetworkInterfaceASIO (Sharding)" in pools);
@@ -32,4 +32,4 @@ assert("hosts" in asio);
assert("totalInUse" in asio);
assert("totalAvailable" in asio);
assert("totalCreated" in asio);
-assert.eq(asio["totalInUse"] + asio["totalAvailable"], asio["totalCreated"]);
+assert.lte(asio["totalInUse"] + asio["totalAvailable"], asio["totalCreated"], tojson(asio));