mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
fix up linting
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user