Skip to content

Commit

Permalink
fix(test): move reading env variable inside method
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Feb 4, 2025
1 parent d1e8a0a commit 1edef39
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions smoke-test/tests/consistency_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ def infer_kafka_broker_container() -> str:
return lines[0]


KAFKA_BROKER_CONTAINER: str = str(
os.getenv("KAFKA_BROKER_CONTAINER", infer_kafka_broker_container())
)


def wait_for_writes_to_sync(max_timeout_in_sec: int = 120) -> None:
if USE_STATIC_SLEEP:
time.sleep(ELASTICSEARCH_REFRESH_INTERVAL_SECONDS)
return
KAFKA_BROKER_CONTAINER: str = str(
os.getenv("KAFKA_BROKER_CONTAINER", infer_kafka_broker_container())
)
start_time = time.time()
# get offsets
lag_zero = False
Expand Down

0 comments on commit 1edef39

Please sign in to comment.