fix test.

This commit is contained in:
Kate Taggart
2017-04-13 14:32:52 -07:00
committed by Alex Dadgar
parent 0c293d27f6
commit 82d60ce670

View File

@@ -88,6 +88,7 @@ type testContext struct {
// It is up to the caller to call AllocDir.Destroy to cleanup.
func testDriverContexts(t *testing.T, task *structs.Task) *testContext {
cfg := testConfig()
cfg.Node = mock.Node()
allocDir := allocdir.NewAllocDir(testLogger(), filepath.Join(cfg.AllocDir, structs.GenerateUUID()))
if err := allocDir.Build(); err != nil {
t.Fatalf("AllocDir.Build() failed: %v", err)