Skip to content

Commit 72b79a7

Browse files
authored
Bump ddapm-test-agent to 1.39.0 (#5845)
1 parent 9b275fb commit 72b79a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

utils/_context/_scenarios/parametric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, name: str, doc: str) -> None:
6363
name,
6464
doc=doc,
6565
github_workflow="parametric",
66-
agent_image="ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.38.0",
66+
agent_image="ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.39.0",
6767
)
6868
self._parametric_tests_confs = ParametricScenario.PersistentParametricTestConf(self)
6969

utils/docker_fixtures/_test_agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,15 @@ def get_test_agent_api(
128128
network=docker_network,
129129
)
130130
time.sleep(0.2) # initial wait time, the trace agent takes 200ms to start
131+
expected_version = agent_env.get("TEST_AGENT_VERSION", "test")
131132
for _ in range(100):
132133
try:
133134
resp = client.info()
134135
except Exception as e:
135136
logger.debug(f"Wait for 0.1s for the test agent to be ready {e}")
136137
time.sleep(0.1)
137138
else:
138-
if resp["version"] != "test":
139+
if resp["version"] != expected_version:
139140
message = f"""Agent version {resp["version"]} is running instead of the test agent.
140141
Stop the agent on port {container_port} and try again."""
141142
pytest.fail(message, pytrace=False)

0 commit comments

Comments
 (0)