mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 18:05:42 +03:00
fix test.
This commit is contained in:
committed by
Alex Dadgar
parent
0c293d27f6
commit
82d60ce670
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user