Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: increase buffer on TestCaptureIndexUsageStats
Tests can take longer to be completed, so a bigger time buffer would be required to accomodate for the non-determinism in the logging timings. This time buffer has been increasing every couple of months and it would have to change to 5s now, which is a big buffer compared to the actual value of 1s. The time it takes is not really relevant for this test, as long as the schedules are happening one after the other. So instead of increasing the time buffer even more, this commit updates the test to confirm that both the expected (which is calculated) and the actual value are great or equal 0. This way the test is no longer flaky or would need to be adjusted every few months, and we keep all the actual checks important for the test. Fixes cockroachdb#110617 Release note: None
- Loading branch information