forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spanconfig/sqlwatcher: speed up tests
Using a more aggressive closed timestamp target duration brings the runtime for TestSQLWatcherReactsToUpdate down from 45s+ to single digits. To speed it up, we also just re-use the same sqlwatcher instead of creating a new one for every test case. Other tests in the package benefit from a similar treatment. Using the default target duration in fact masked a buggy test; in a future commit we end up rewrite that test so it's skipped for now. Release note: None
- Loading branch information
1 parent
2ac3cf4
commit ee68771
Showing
2 changed files
with
88 additions
and
73 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
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