File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
engines/ep/tests/module_tests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -666,10 +666,12 @@ TEST_F(MutationLogTest, upgradeV3toV4) {
666666 }
667667 };
668668
669+ const auto somekey = makeStoredDocKey (" somekey" );
670+
669671 {
670672 MockMutationLog ml (tmp_log_filename, MutationLogVersion::V3);
671673 ml.open ();
672- ml.newItem (Vbid (3 ), makeStoredDocKey ( " somekey" ) );
674+ ml.newItem (Vbid (3 ), somekey);
673675 ml.commit1 ();
674676 ml.commit2 ();
675677 ml.flush ();
@@ -682,7 +684,7 @@ TEST_F(MutationLogTest, upgradeV3toV4) {
682684 ASSERT_EQ (MutationLogVersion::V3, ml.header ().version ());
683685 auto iter = ml.begin ();
684686 EXPECT_EQ (MutationLogType::New, (*iter)->type ());
685- EXPECT_EQ (makeStoredDocKey ( " somekey" ), (*iter)->key ());
687+ EXPECT_EQ (static_cast < const DocKey&>( somekey), (*iter)->key ());
686688 ++iter;
687689 EXPECT_EQ (MutationLogType::Commit1, (*iter)->type ());
688690 ++iter;
You can’t perform that action at this time.
0 commit comments