Skip to content

Commit

Permalink
fix up scheduler mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
chelseakomlo committed Mar 1, 2018
1 parent b417c5e commit b8695fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion nomad/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func Node() *structs.Node {
},
},
},
Drivers: make(map[string]*structs.DriverInfo),
Links: map[string]string{
"consul": "foobar.dc1",
},
Expand Down
3 changes: 3 additions & 0 deletions scheduler/feasible_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ func TestDriverChecker_HealthChecks(t *testing.T) {
mock.Node(),
mock.Node(),
}
for _, e := range nodes {
e.Drivers = make(map[string]*structs.DriverInfo)
}
nodes[0].Attributes["driver.foo"] = "1"
nodes[0].Drivers["foo"] = &structs.DriverInfo{
Detected: true,
Expand Down

0 comments on commit b8695fd

Please sign in to comment.