-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: reduce beater tests time (#12472)
TestTimeoutMiddleware: replace the hardcoded 1s time.Sleep with twice the context timeout. In this case 2ns. Test time went from 1s to 0s. TestServerWaitForIntegrationElasticsearch: replace mutex with atomic int to reduce lock contention and set flush_interval to 1ms (default 1s). Test time went from a bit over 1s to 0.1s TestServerElasticsearchOutput: replace flush_bytes 1kb with flush_interval 1ms. The flush_bytes setting had no effect on this case even if the test data is >1kb because compression is enabled so it's never going to hit the flush_bytes and is hitting the default timeout instead (1s). Test time went from a bit over 1s to 0.1s
- Loading branch information
Showing
2 changed files
with
18 additions
and
20 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