diff options
Diffstat (limited to 'jstests/noPassthrough/record_preimage_startup_validation.js')
-rw-r--r-- | jstests/noPassthrough/record_preimage_startup_validation.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/jstests/noPassthrough/record_preimage_startup_validation.js b/jstests/noPassthrough/record_preimage_startup_validation.js index bc8ed6e14a3..6755f2439da 100644 --- a/jstests/noPassthrough/record_preimage_startup_validation.js +++ b/jstests/noPassthrough/record_preimage_startup_validation.js @@ -77,3 +77,19 @@ assert.throws(() => { rsTest.stopSet(); }()); +(function() { +rsTest = new ReplSetTest({nodes: 1}); +rsTest.startSet(); +rsTest.initiate(); +adminDB = rsTest.getPrimary().getDB("admin"); +testDB = rsTest.getPrimary().getDB("test"); + +assert.commandWorked(adminDB.runCommand({setFeatureCompatibilityVersion: latestFCV})); +assert.commandWorked(testDB.runCommand({create: "test", recordPreImages: true})); + +assert.doesNotThrow(() => { + rsTest.restart(rsTest.getPrimary()); +}); + +rsTest.stopSet(); +}()); |