Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code.

This commit is contained in:
goltermann
2016-03-22 17:26:50 -07:00
parent 1f8773ee45
commit 34d4eaea08
42 changed files with 68 additions and 72 deletions

View File

@@ -234,7 +234,7 @@ func TestControllerSyncJob(t *testing.T) {
// run
err := manager.syncJob(getKey(job, t))
if err != nil {
t.Errorf("%s: unexpected error when syncing jobs %v", err)
t.Errorf("%s: unexpected error when syncing jobs %v", name, err)
}
// validate created/deleted pods
@@ -332,7 +332,7 @@ func TestSyncJobPastDeadline(t *testing.T) {
// run
err := manager.syncJob(getKey(job, t))
if err != nil {
t.Errorf("%s: unexpected error when syncing jobs %v", err)
t.Errorf("%s: unexpected error when syncing jobs %v", name, err)
}
// validate created/deleted pods