summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/transactionLifetimeLimitSeconds_serverParameter.js
blob: 6477fc8a4ca08f6ab90457e631fbb891f558bfdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Test server validation of the 'transactionLifetimeLimitSeconds' server parameter setting on
// startup and via setParameter command. Valid parameter values are in the range [1, infinity).

(function() {
    'use strict';

    load("jstests/noPassthrough/libs/server_parameter_helpers.js");

    // transactionLifetimeLimitSeconds is set to be higher than its default value in test suites.
    delete TestData.transactionLifetimeLimitSeconds;

    testNumericServerParameter("transactionLifetimeLimitSeconds",
                               true /*isStartupParameter*/,
                               true /*isRuntimeParameter*/,
                               60 /*defaultValue*/,
                               30 /*nonDefaultValidValue*/,
                               true /*hasLowerBound*/,
                               0 /*lowerOutOfBounds*/,
                               false /*hasUpperBound*/,
                               "unused" /*upperOutOfBounds*/);
})();