Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: fix testing code that was accidentally in prod
In 65df6fc, I added code intended to catch racy uses of manual replication in tests. Unfortunately, the condition I used to check whether we were in a test was always true (the return of `TestingKnobs()` is never nil). I looked around for a better way to test whether we're running in a test and it's not that straightforward, but we do get to find out whether running as part of nightly stress, and that seems like a good enough context in which to enable these checks. Fixes #57863. Release note: None
- Loading branch information