Skip to content

Commit 3735b70

Browse files
committed
kvserver: fix TestUpdateLastUpdateTimesUsingStoreLiveness
This test wasn't doing as advertised on the tin after I broke some testing knobs in 02fa61b. Epic: none Release note: None
1 parent 5b0891c commit 3735b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kv/kvserver/replica_raft.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ func (r *Replica) stepRaftGroupRaftMuLocked(req *kvserverpb.RaftMessageRequest)
702702
// Update the lastUpdateTimes map, unless configured not to by a testing
703703
// knob.
704704
disableUpdateLastUpdateTimesMapOnRaftGroupStep := false
705-
if r.store.TestingKnobs() == nil &&
705+
if r.store.TestingKnobs() != nil &&
706706
r.store.TestingKnobs().DisableUpdateLastUpdateTimesMapOnRaftGroupStep != nil {
707707
disableUpdateLastUpdateTimesMapOnRaftGroupStep = r.store.TestingKnobs().DisableUpdateLastUpdateTimesMapOnRaftGroupStep(r)
708708
}

0 commit comments

Comments
 (0)