File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2667,14 +2667,16 @@ TEST_F(
2667
2667
// First response says readOnly: true.
2668
2668
txnRouter.processParticipantResponse (operationContext (), shard1, kOkReadOnlyTrueResponse );
2669
2669
2670
- const auto participant = txnRouter.getParticipant (shard1);
2670
+ const auto oldParticipant = txnRouter.getParticipant (shard1);
2671
2671
2672
- ASSERT (TransactionRouter::Participant::ReadOnly::kReadOnly == participant ->readOnly );
2672
+ ASSERT (TransactionRouter::Participant::ReadOnly::kReadOnly == oldParticipant ->readOnly );
2673
2673
2674
2674
// Later response says readOnly: false.
2675
2675
txnRouter.processParticipantResponse (operationContext (), shard1, kOkReadOnlyFalseResponse );
2676
2676
2677
- ASSERT (TransactionRouter::Participant::ReadOnly::kNotReadOnly == participant->readOnly );
2677
+ const auto updatedParticipant = txnRouter.getParticipant (shard1);
2678
+
2679
+ ASSERT (TransactionRouter::Participant::ReadOnly::kNotReadOnly == updatedParticipant->readOnly );
2678
2680
}
2679
2681
2680
2682
TEST_F (TransactionRouterTestWithDefaultSession,
You can’t perform that action at this time.
0 commit comments