summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/ttl_expire_nan_warning_on_startup.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/ttl_expire_nan_warning_on_startup.js')
-rw-r--r--jstests/noPassthrough/ttl_expire_nan_warning_on_startup.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/noPassthrough/ttl_expire_nan_warning_on_startup.js b/jstests/noPassthrough/ttl_expire_nan_warning_on_startup.js
index a285adc69a5..bf97a4a2913 100644
--- a/jstests/noPassthrough/ttl_expire_nan_warning_on_startup.js
+++ b/jstests/noPassthrough/ttl_expire_nan_warning_on_startup.js
@@ -24,11 +24,14 @@ const coll = db.t;
// The test cases here revolve around having a TTL index in the catalog with a NaN
// 'expireAfterSeconds'. The current createIndexes behavior will overwrite NaN with int32::max
// unless we use a fail point.
-const fp = configureFailPoint(primary, 'skipTTLIndexNaNExpireAfterSecondsValidation');
+const fp = configureFailPoint(primary, 'skipTTLIndexValidationOnCreateIndex');
+const fp2 =
+ configureFailPoint(primary, 'skipTTLIndexInvalidExpireAfterSecondsValidationForCreateIndex');
try {
assert.commandWorked(coll.createIndex({t: 1}, {expireAfterSeconds: NaN}));
} finally {
fp.off();
+ fp2.off();
}
assert.commandWorked(coll.insert({_id: 0, t: ISODate()}));