mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
Fix lint errors
This commit is contained in:
@@ -408,10 +408,10 @@ func TestPathFuncs(t *testing.T) {
|
||||
}
|
||||
|
||||
if empty, err := pathEmpty(dir); err != nil || !empty {
|
||||
t.Errorf("%q is empty and exists. empty=%v error=%v", empty, err)
|
||||
t.Errorf("%q is empty and exists. empty=%v error=%v", dir, empty, err)
|
||||
}
|
||||
if empty, err := pathEmpty(missingDir); err == nil || empty {
|
||||
t.Errorf("%q is missing. empty=%v error=%v", empty, err)
|
||||
t.Errorf("%q is missing. empty=%v error=%v", missingDir, empty, err)
|
||||
}
|
||||
|
||||
filename := filepath.Join(dir, "just-some-file")
|
||||
@@ -422,6 +422,6 @@ func TestPathFuncs(t *testing.T) {
|
||||
f.Close()
|
||||
|
||||
if empty, err := pathEmpty(dir); err != nil || empty {
|
||||
t.Errorf("%q is not empty. empty=%v error=%v", empty, err)
|
||||
t.Errorf("%q is not empty. empty=%v error=%v", dir, empty, err)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ func TestLinuxRootSecretDir(t *testing.T) {
|
||||
t.Fatalf("secrets dir %q is not a directory and should be", secretsDir)
|
||||
}
|
||||
if err := isMount(secretsDir); err != nil {
|
||||
t.Fatalf("secrets dir %q is not a mount: %v", err)
|
||||
t.Fatalf("secrets dir %q is not a mount: %v", secretsDir, err)
|
||||
}
|
||||
|
||||
// now remove it
|
||||
|
||||
Reference in New Issue
Block a user