Skip to content

Commit 4837dbc

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 84697f3 commit 4837dbc

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
@@ -699,7 +699,7 @@ func (r *Replica) stepRaftGroupRaftMuLocked(req *kvserverpb.RaftMessageRequest)
699699
// Update the lastUpdateTimes map, unless configured not to by a testing
700700
// knob.
701701
disableUpdateLastUpdateTimesMapOnRaftGroupStep := false
702-
if r.store.TestingKnobs() == nil &&
702+
if r.store.TestingKnobs() != nil &&
703703
r.store.TestingKnobs().DisableUpdateLastUpdateTimesMapOnRaftGroupStep != nil {
704704
disableUpdateLastUpdateTimesMapOnRaftGroupStep = r.store.TestingKnobs().DisableUpdateLastUpdateTimesMapOnRaftGroupStep(r)
705705
}

0 commit comments

Comments
 (0)