From 228be20f22a4ce29d2471a171bd762ca7373da1e Mon Sep 17 00:00:00 2001 From: James Rasell Date: Wed, 2 Feb 2022 08:42:58 +0100 Subject: [PATCH] e2e: moved missed volume test stop command to util helper. --- e2e/volumes/volumes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/volumes/volumes.go b/e2e/volumes/volumes.go index 9e7b48cdd..4846a0fad 100644 --- a/e2e/volumes/volumes.go +++ b/e2e/volumes/volumes.go @@ -77,7 +77,7 @@ func (tc *VolumesTest) TestVolumeMounts(f *framework.F) { f.NoError(err, "could not exec into task: exec_task") f.Equal(out, allocID+"\n", "alloc data is missing from exec_task") - _, err = e2e.Command("nomad", "job", "stop", jobID) + err = e2e.StopJob(jobID) f.NoError(err, "could not stop job") // modify the job so that we make sure it's placed back on the same host.