summaryrefslogtreecommitdiff
path: root/jstests/replsets/replsetrestart2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/replsetrestart2.js')
-rw-r--r--jstests/replsets/replsetrestart2.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/replsets/replsetrestart2.js b/jstests/replsets/replsetrestart2.js
index 324bd37..6d96697 100644
--- a/jstests/replsets/replsetrestart2.js
+++ b/jstests/replsets/replsetrestart2.js
@@ -1,16 +1,16 @@
// config saved on shutdown
var compare_configs = function(c1, c2) {
- assert(c1.version == c2.version, 'version same');
- assert(c1._id == c2._id, '_id same');
+ assert.eq(c1.version, c2.version, 'version same');
+ assert.eq(c1._id, c2._id, '_id same');
printjson(c1);
printjson(c2);
for (var i in c1.members) {
assert(c2.members[i] !== undefined, 'field '+i+' exists in both configs');
- assert(c1.members[i]._id == c2.members[i]._id, 'id is equal in both configs');
- assert(c1.members[i].host == c2.members[i].host, 'id is equal in both configs');
+ assert.eq(c1.members[i]._id, c2.members[i]._id, 'id is equal in both configs');
+ assert.eq(c1.members[i].host, c2.members[i].host, 'id is equal in both configs');
}
}