-
Type: Bug
-
Resolution: Done
-
Priority: Trivial - P5
-
Affects Version/s: 3.2.0-rc2
-
Component/s: Testing Infrastructure
-
None
-
Fully Compatible
-
ALL
-
TIG C (11/20/15)
This code in jstests/libs/override_methods/set_majority_read_and_write_concerns.js should use tojson() for the objects in the jsTestLog calls:
if (forceWriteConcern) { if (obj.hasOwnProperty("writeConcern")) { jsTestLog("Warning: overriding existing writeConcern of: " + obj.writeConcern); } obj.writeConcern = defaultWriteConcern; } else if (forceReadConcern) { if (obj.hasOwnProperty("readConcern")) { jsTestLog("Warning: overriding existing readConcern of: " + obj.readConcern); } obj.readConcern = {level: "majority"}; }