diff --git a/e2e/consul/input/checks_group.nomad b/e2e/consul/input/checks_group.nomad index 13b1b401127..fae1b9fc711 100644 --- a/e2e/consul/input/checks_group.nomad +++ b/e2e/consul/input/checks_group.nomad @@ -51,7 +51,7 @@ job "group_check" { interval = "2s" timeout = "2s" command = "cat" - args = ["alive-2b"] + args = ["/tmp/${NOMAD_ALLOC_ID}-alive-2b"] } } diff --git a/e2e/consul/script_checks.go b/e2e/consul/script_checks.go index 11cceb841e4..7e980eaed40 100644 --- a/e2e/consul/script_checks.go +++ b/e2e/consul/script_checks.go @@ -50,7 +50,7 @@ func (tc *ScriptChecksE2ETest) TestGroupScriptCheck(f *framework.F) { // Check in warning state becomes healthy after check passes _, _, err := exec(nomadClient, allocs, - []string{"/bin/sh", "-c", "touch ${NOMAD_TASK_DIR}/alive-2b"}) + []string{"/bin/sh", "-c", "touch /tmp/${NOMAD_ALLOC_ID}-alive-2b"}) require.NoError(err) e2eutil.RequireConsulStatus(require, consulClient, "group-service-2", capi.HealthPassing)