diff options
author | Jordi Olivares Provencio <jordi.olivares-provencio@mongodb.com> | 2022-04-05 08:34:36 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-05 09:01:56 +0000 |
commit | 4146e4cc549504cf3e4909b7ab9f63215947cbcd (patch) | |
tree | 18d346321bf2e2a4ce350afa701510fbb8ddc2c8 /src/mongo | |
parent | d850d5782f407c5ac3d194d1d2b0b6a8495d79f5 (diff) | |
download | mongo-4146e4cc549504cf3e4909b7ab9f63215947cbcd.tar.gz |
SERVER-64851 Refactor tests to not depend on specific WiredTiger strings
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/storage/kv/kv_engine_test_harness.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp index f50dea13d6a..7cafd20c512 100644 --- a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp +++ b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp @@ -946,12 +946,12 @@ TEST_F(KVEngineTestHarness, PinningOldestTimestampWithReadConflict) { */ DEATH_TEST_REGEX_F(KVEngineTestHarness, PinningOldestTimestampWithWriteConflict, - ".*commit timestamp.*is less than the oldest timestamp.*") { + "Fatal assertion.*39001") { std::unique_ptr<KVHarnessHelper> helper(KVHarnessHelper::create(getServiceContext())); KVEngine* engine = helper->getEngine(); // TODO SERVER-48314: Remove after implementing correct behavior on biggie. if (engine->isEphemeral()) - invariant(false, "commit timestamp is less than the oldest timestamp"); + invariant(false, "Fatal assertion: 39001"); std::string ns = "a.b"; std::unique_ptr<RecordStore> rs; @@ -1069,14 +1069,12 @@ TEST_F(KVEngineTestHarness, RollingBackToLastStable) { * | Write A 1 | | * | Timestamp :commit 1 (ROLLBACK) | | */ -DEATH_TEST_REGEX_F(KVEngineTestHarness, - CommitBehindStable, - ".*commit timestamp.*(is less than|must be after) the stable timestamp.*") { +DEATH_TEST_REGEX_F(KVEngineTestHarness, CommitBehindStable, "Fatal assertion.*39001") { std::unique_ptr<KVHarnessHelper> helper(KVHarnessHelper::create(getServiceContext())); KVEngine* engine = helper->getEngine(); // TODO SERVER-48314: Remove after implementing correct behavior on biggie. if (engine->isEphemeral()) - invariant(false, "commit timestamp is less than the stable timestamp"); + invariant(false, "Fatal assertion: 39001"); // The initial data timestamp has to be set to take stable checkpoints. engine->setInitialDataTimestamp(Timestamp(1, 1)); |