mirror of https://github.com/mongodb/mongo
SERVER-110383 Remove core dumps on intentional crashes on replicaset to csrs promotion tests (#40982)
GitOrigin-RevId: 9a213e6db200104517d9f8082ce9f56887285560
This commit is contained in:
parent
82dddce526
commit
6effbdd839
|
|
@ -8,7 +8,13 @@ import {afterEach, before, beforeEach, describe, it} from "jstests/libs/mochalit
|
||||||
import {ReplSetTest} from "jstests/libs/replsettest.js";
|
import {ReplSetTest} from "jstests/libs/replsettest.js";
|
||||||
|
|
||||||
describe("replicaSetConfigShardMaintenanceMode startup flag incompatibility tests", function () {
|
describe("replicaSetConfigShardMaintenanceMode startup flag incompatibility tests", function () {
|
||||||
|
afterEach(() => {
|
||||||
|
TestData.cleanUpCoreDumpsFromExpectedCrash = false;
|
||||||
|
});
|
||||||
|
|
||||||
it("incompatible with standalone", () => {
|
it("incompatible with standalone", () => {
|
||||||
|
TestData.cleanUpCoreDumpsFromExpectedCrash = true;
|
||||||
|
|
||||||
const error = assert.throws(() => {
|
const error = assert.throws(() => {
|
||||||
MongoRunner.runMongod({replicaSetConfigShardMaintenanceMode: ""});
|
MongoRunner.runMongod({replicaSetConfigShardMaintenanceMode: ""});
|
||||||
});
|
});
|
||||||
|
|
@ -17,6 +23,8 @@ describe("replicaSetConfigShardMaintenanceMode startup flag incompatibility test
|
||||||
});
|
});
|
||||||
|
|
||||||
it("incompatible with shardsvr flag", () => {
|
it("incompatible with shardsvr flag", () => {
|
||||||
|
TestData.cleanUpCoreDumpsFromExpectedCrash = true;
|
||||||
|
|
||||||
const rs = new ReplSetTest({nodes: 1});
|
const rs = new ReplSetTest({nodes: 1});
|
||||||
|
|
||||||
const error = assert.throws(() => {
|
const error = assert.throws(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue