test: build with mock_driver by default

`make release` and `make prerelease` set a `release` tag to disable
enabling the `mock_driver`
This commit is contained in:
Michael Schurter
2018-03-27 15:51:54 -07:00
parent 1766bc26f7
commit 29da24b77b
8 changed files with 10 additions and 33 deletions

View File

@@ -14,7 +14,6 @@ import (
"github.com/hashicorp/nomad/client"
"github.com/hashicorp/nomad/client/allocdir"
"github.com/hashicorp/nomad/client/config"
"github.com/hashicorp/nomad/client/driver"
"github.com/hashicorp/nomad/client/vaultclient"
"github.com/hashicorp/nomad/command/agent/consul"
"github.com/hashicorp/nomad/nomad/mock"
@@ -32,9 +31,6 @@ func testLogger() *log.Logger {
// TestConsul_Integration asserts TaskRunner properly registers and deregisters
// services and checks with Consul using an embedded Consul agent.
func TestConsul_Integration(t *testing.T) {
if _, ok := driver.BuiltinDrivers["mock_driver"]; !ok {
t.Skip(`test requires mock_driver; run with "-tags nomad_test"`)
}
if testing.Short() {
t.Skip("-short set; skipping")
}