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:
Dan Hable 2025-05-20 10:06:28 -05:00 committed by GitHub
parent e7262d1288
commit 0b8b9f829c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View file

@ -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() {

View 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" {

View file

@ -23,7 +23,6 @@ validate_env() {
wait_for_ready() {
local container_name=$1
local endpoint=$2
local max_attempts=10
local wait_time=0