fix up linting

This commit is contained in:
Chelsea Holland Komlo
2018-02-01 12:26:38 -05:00
parent e5ccc551dc
commit 15cb7683f8
2 changed files with 5 additions and 3 deletions

View File

@@ -259,10 +259,12 @@ func TestClient_Fingerprint_Periodic(t *testing.T) {
}
t.Parallel()
// these constants are only defined when nomad_test is enabled, so these fail
// our linter without explicit disabling.
c1 := testClient(t, func(c *config.Config) {
c.Options = map[string]string{
driver.ShutdownPeriodicAfter: "true",
driver.ShutdownPeriodicDuration: "3",
driver.ShutdownPeriodicAfter: "true", // nolint: varcheck
driver.ShutdownPeriodicDuration: "3", // nolint: varcheck
}
})
defer c1.Shutdown()

View File

@@ -199,7 +199,7 @@ type FingerprintResponse struct {
Resources *structs.Resources
// Detected is a boolean indicating whether the fingerprinter detected
// if the resource was avaialble
// if the resource was available
Detected bool
}