diff options
-rw-r--r-- | jstests/core/max_time_ms.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/core/max_time_ms.js b/jstests/core/max_time_ms.js index 16ee99827e2..9ed499a47b0 100644 --- a/jstests/core/max_time_ms.js +++ b/jstests/core/max_time_ms.js @@ -176,7 +176,11 @@ cursor = t.find({ cursor.batchSize(3); cursor.maxTimeMS(20 * 1000); assert.doesNotThrow(function() { + // SERVER-40305: Add some additional logging here in case this fails to help us track down why + // it failed. + assert.commandWorked(db.adminCommand({setParameter: 1, traceExceptions: 1})); cursor.itcount(); + assert.commandWorked(db.adminCommand({setParameter: 1, traceExceptions: 0})); }, [], "expected find() to not hit the time limit"); // |