From 7891737fa86e01fadce30b04dc0f43aba24a5737 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Wed, 24 Feb 2016 23:07:06 -0800 Subject: [PATCH] Fixed some java tests --- client/driver/java_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/driver/java_test.go b/client/driver/java_test.go index 4c2263e11..e49bb095b 100644 --- a/client/driver/java_test.go +++ b/client/driver/java_test.go @@ -7,7 +7,6 @@ import ( "testing" "time" - "github.com/hashicorp/nomad/client/allocdir" "github.com/hashicorp/nomad/client/config" "github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/testutil" @@ -143,8 +142,7 @@ func TestJavaDriver_Start_Wait(t *testing.T) { } // Get the stdout of the process and assrt that it's not empty - taskDir := execCtx.AllocDir.TaskDirs["demo-app"] - stdout := filepath.Join(taskDir, allocdir.TaskLocal, "demo-app.stdout.0") + stdout := filepath.Join(execCtx.AllocDir.LogDir(), "demo-app.stdout.0") fInfo, err := os.Stat(stdout) if err != nil { t.Fatalf("failed to get stdout of process: %v", err)