Skip to content

Commit 2659273

Browse files
committed
CBD-6348: Revert "CBD-6348: Fix ambiguous == operator in unit test"
This reverts commit 3efe1b1. It was merged too early in the stack (should be after upgrading the compiler and starting towards c++20) Change-Id: I6e3489eb7fb96290ef3547f5766c9238d2a134c0 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/234607 Well-Formed: Restriction Checker Tested-by: Trond Norbye <[email protected]> Reviewed-by: Trond Norbye <[email protected]>
1 parent 3efe1b1 commit 2659273

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

engines/ep/tests/module_tests/mutation_log_test.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,12 +666,10 @@ TEST_F(MutationLogTest, upgradeV3toV4) {
666666
}
667667
};
668668

669-
const auto somekey = makeStoredDocKey("somekey");
670-
671669
{
672670
MockMutationLog ml(tmp_log_filename, MutationLogVersion::V3);
673671
ml.open();
674-
ml.newItem(Vbid(3), somekey);
672+
ml.newItem(Vbid(3), makeStoredDocKey("somekey"));
675673
ml.commit1();
676674
ml.commit2();
677675
ml.flush();
@@ -684,7 +682,7 @@ TEST_F(MutationLogTest, upgradeV3toV4) {
684682
ASSERT_EQ(MutationLogVersion::V3, ml.header().version());
685683
auto iter = ml.begin();
686684
EXPECT_EQ(MutationLogType::New, (*iter)->type());
687-
EXPECT_EQ(static_cast<const DocKey&>(somekey), (*iter)->key());
685+
EXPECT_EQ(makeStoredDocKey("somekey"), (*iter)->key());
688686
++iter;
689687
EXPECT_EQ(MutationLogType::Commit1, (*iter)->type());
690688
++iter;

0 commit comments

Comments
 (0)