Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): Handle early return from influxdb create database (#5928)
* Fix tracing in prometheus remote_write sink integration tests * Use the nanosecond timestamp to create influx database name * Don't bother dropping the old database, the name is unique * fix(tests): Handle early return from influxdb create database Some times, the influxdb v1 server will return early from creating the database, providing an OK response code before the database is actually created. Subsequent sink calls will then encounter a NOT_FOUND response when trying to write to the database, resulting in a spurious failure. This tests for database existence after creating it by doing an empty write, and looping until that returns NO_CONTENT. Signed-off-by: Bruce Guenter <bruce@timber.io>
- Loading branch information
Bruce Guenter
committed
Jan 8, 2021
1 parent
2cce30c
commit 08bb58f
Showing
2 changed files
with
36 additions
and
18 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