]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Fix unittest_peeringstate as 74218 has merged 67509/head
authorBill Scales <bill_scales@uk.ibm.com>
Wed, 25 Feb 2026 07:51:54 +0000 (07:51 +0000)
committerBill Scales <bill_scales@uk.ibm.com>
Wed, 25 Feb 2026 07:57:52 +0000 (07:57 +0000)
Fix merge conflict between unittest_peeringstate
(commit 87e3334de7bda6ac90f43ab1d9a7c6359dd10d35)
and fix for issue 74218 by fixing test case to
expect the new behavior.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
src/test/osd/TestPeeringState.cc

index 52f2a18a0985b43e485b75cbb6719a6ccd3c69f3..4153f956d44aa5b6648a20ba13f7a3313c89207b 100644 (file)
@@ -2871,11 +2871,7 @@ TEST_F(PeeringStateTest, PartialWritePeeringToActiveClean) {
   {
     std::map<shard_id_t,std::pair<eversion_t, eversion_t>> expected_pwlc;
     expected_pwlc[shard_id_t(1)] = std::pair(eversion_t(), expected);
-#ifndef ISSUE_74218
-    epoch_t expected_pwlc_epoch = 2;
-#else
     epoch_t expected_pwlc_epoch = osdmap->get_epoch();
-#endif
     verify_pwlc(expected_pwlc_epoch, expected_pwlc);
   }
 }
@@ -2910,11 +2906,7 @@ TEST_F(PeeringStateTest, PartialWriteNotCompletePeeringToActiveClean) {
   {
     std::map<shard_id_t,std::pair<eversion_t, eversion_t>> expected_pwlc;
     expected_pwlc[shard_id_t(1)] = std::pair(eversion_t(), expected);
-#ifndef ISSUE_74218
-    epoch_t expected_pwlc_epoch = 2;
-#else
     epoch_t expected_pwlc_epoch = osdmap->get_epoch();
-#endif
     verify_pwlc(expected_pwlc_epoch, expected_pwlc);
   }
 }