-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: deflake and unskip TestPushTxnUpgradeExistingTxn
Fixes #64313. This test would flake if the clock was incremented at all between the creation of the two transactions. The easiest way to reproduce this was by adding a `tc.Clock().Now()` call between the calls to `newTransaction`. This was because a prior iteration would `Forward` the clock to the relevant WallTime, so logical ticks could cause issues. This commit deflakes the test by replacing the predetermination of timestamps with predetermined time offsets. This prevents a clock increment in a previous iteration from impacting the relative timestamps in the next iteration. Release justification: testing only
- Loading branch information
1 parent
1266aed
commit ecffc89
Showing
1 changed file
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters