jstests/noPassthrough/server_transaction_metrics_kill_sessions.js
// Verifies that the given value of the transaction metrics is incremented in the way we expect.
Verifies that the given value of the transaction metrics is incremented in the way we expect.
Verifies that the given value of the transaction metrics is incremented in the way we expect .
function verifyMetricsChange(initialStats, newStats, valueName, expectedIncrement) {
    assert.eq(initialStats[valueName] + expectedIncrement,
              newStats[valueName],
              "expected " + valueName + " to increase by " + expectedIncrement +
                  ".\nInitial stats: " + tojson(initialStats) + "; New stats: " + tojson(newStats));
}
function verifyMetricsChange ( initialStats , newStats , valueName , expectedIncrement ) { assert . eq ( initialStats [ valueName ] + expectedIncrement , newStats [ valueName ] , "expected " + valueName + " to increase by " + expectedIncrement + ".\nInitial stats: " + tojson ( initialStats ) + "; New stats: " + tojson ( newStats ) ) ; }
Verifies that the given value of the transaction metrics is incremented in the way we expect.
Verifies that the given value of the transaction metrics is incremented in the way we expect .