Repository navigation
Conversation
- TestInfluxBufferOptions checks the retry queue size, retry count and retry time derived from the buffer duration, including the client defaults for 0 and the one-batch minimum - TestInfluxOutage simulates a 20s database outage against a fake server and checks that every point is delivered with a 1h buffer - TestInfluxOutageDefault checks that the same outage loses data with the client defaults, so the outage test is meaningful The outage tests are skipped with -short. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XzyNHxELw6PasHKku3kreU
Contributor
Author
|
Closed in favor of #413 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds tests for the write buffering in #406. This PR targets the
feat/influx-retrybranch and only addsserver/influx_test.go; #406's code is unchanged.TestInfluxBufferOptions: checks the retry queue size (in batches), retry count and retry time derived frombufferfor 0, 500ms, 10m and 1h, including the client defaults for 0 and the one-batch minimum.TestInfluxOutage: simulates a 20s database outage against a fake InfluxDB server and checks that every point arrives once it is back with a 1h buffer.TestInfluxOutageDefault: the same outage loses data with the client defaults, so the outage test is meaningful.The outage tests take about 1–1.5 minutes and are skipped with
-short.