diff options
author | Benety Goh <benety@mongodb.com> | 2021-11-19 16:36:18 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-19 17:16:16 +0000 |
commit | 05e9513854d76e545cffd9adaec739ddcbd537bf (patch) | |
tree | 5f4ad04ec303a55d4f724b14dfed72101640bdd7 /src | |
parent | 4f13fa57a933e747c9709814029ba923bc9d2a78 (diff) | |
download | mongo-05e9513854d76e545cffd9adaec739ddcbd537bf.tar.gz |
SERVER-60748 update OpObserverTest::EachOnDeleteRequiresAboutToDelete to reflect current behavior
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/op_observer_impl_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/op_observer_impl_test.cpp b/src/mongo/db/op_observer_impl_test.cpp index 1b03b11ade3..41e06e85514 100644 --- a/src/mongo/db/op_observer_impl_test.cpp +++ b/src/mongo/db/op_observer_impl_test.cpp @@ -712,15 +712,15 @@ DEATH_TEST_F(OpObserverTest, AboutToDeleteMustPreceedOnDelete, "invariant") { opObserver.onDelete(opCtx.get(), nss, UUID::gen(), kUninitializedStmtId, {}); } -DEATH_TEST_F(OpObserverTest, EachOnDeleteRequiresAboutToDelete, "invariant") { +DEATH_TEST_REGEX_F(OpObserverTest, + AboutToDeleteRequiresIdField, + "Invariant failure.*!id.isEmpty()") { OpObserverImpl opObserver; auto opCtx = cc().makeOperationContext(); cc().swapLockState(std::make_unique<LockerNoop>()); NamespaceString nss = {"test", "coll"}; UUID uuid = UUID::gen(); opObserver.aboutToDelete(opCtx.get(), nss, uuid, {}); - opObserver.onDelete(opCtx.get(), nss, uuid, kUninitializedStmtId, {}); - opObserver.onDelete(opCtx.get(), nss, uuid, kUninitializedStmtId, {}); } DEATH_TEST_REGEX_F(OpObserverTest, |