mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
refactor: clean up cruft from test suite (#831)
1. The wait_for_ready function does not need the endpoint param. We should remove it to make maintenance easier. 2. The hdx-1514-inference test should use the attempt_env_cleanup function to pick up the logic that skips container tear down. Ref: HDX-1730
This commit is contained in:
parent
e7262d1288
commit
0b8b9f829c
3 changed files with 3 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ load 'test_helpers/assertions.bash'
|
|||
setup_file() {
|
||||
validate_env
|
||||
docker compose up --build --detach
|
||||
wait_for_ready "otel-collector" "http://localhost:4318"
|
||||
wait_for_ready "otel-collector"
|
||||
}
|
||||
|
||||
teardown_file() {
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ load 'test_helpers/assertions.bash'
|
|||
setup_file() {
|
||||
validate_env
|
||||
docker compose up --build --detach
|
||||
wait_for_ready "otel-collector" "http://localhost:4318"
|
||||
wait_for_ready "otel-collector"
|
||||
}
|
||||
|
||||
teardown_file() {
|
||||
docker compose down
|
||||
attempt_env_cleanup
|
||||
}
|
||||
|
||||
@test "should infer fatal log level" {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ validate_env() {
|
|||
|
||||
wait_for_ready() {
|
||||
local container_name=$1
|
||||
local endpoint=$2
|
||||
local max_attempts=10
|
||||
local wait_time=0
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue