summaryrefslogtreecommitdiff
path: root/jstests/sharding/diffservers1.js
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2015-10-30 20:32:16 +1100
committerKevin Pulo <kevin.pulo@mongodb.com>2015-10-30 20:35:28 +1100
commit0c8b0d57c7072788e5f7f20af36214f0f9060099 (patch)
treeaeabaeead9a17e925c0d9e56b85339f54e6aebe2 /jstests/sharding/diffservers1.js
parent1ba041ab5d54d361fd04c0957493354caa99097b (diff)
downloadmongo-0c8b0d57c7072788e5f7f20af36214f0f9060099.tar.gz
SERVER-12746: Fix assert() calls with constant-value args
These calls were mostly mistakes that should have been assert.eq(). assert() will now trip if passed a non-string msg, or too many params.
Diffstat (limited to 'jstests/sharding/diffservers1.js')
-rw-r--r--jstests/sharding/diffservers1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/diffservers1.js b/jstests/sharding/diffservers1.js
index b485d508b43..1ddff72d5d0 100644
--- a/jstests/sharding/diffservers1.js
+++ b/jstests/sharding/diffservers1.js
@@ -10,7 +10,7 @@ test1 = s.getDB( "test1" ).foo;
test1.save( { a : 1 } );
test1.save( { a : 2 } );
test1.save( { a : 3 } );
-assert( 3 , test1.count() );
+assert.eq( 3 , test1.count() );
assert( ! s.admin.runCommand( { addshard: "sdd$%" } ).ok , "bad hostname" );