Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
102086: kv: improve `TestTxnCoordSenderRetries` r=nvanbenschoten a=nvanbenschoten This PR improves `TestTxnCoordSenderRetries` in two ways, in preparation for its use to be expanded to demonstrate the difference in behavior between isolation levels. ### use local TxnMetrics in TestTxnCoordSenderRetries The first commit updates `TestTxnCoordSenderRetries` to use a local `kv.DB` with a local `TxnMetrics` for its test transaction. This allows the test to precisely assert on the metrics without having to worry about other transactions in the system affecting them. ### add preemptive refreshes and 1PCs to TestTxnCoordSenderRetries The second commit adds more testing conditions to TestTxnCoordSenderRetries. Each test now asserts it expectations for preemptive refreshes and for 1-phase commits. Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information