Merge pull request #69587 from jonfriesen/fix_golint_tests

Fixes golint for test/list
pull/58/head
k8s-ci-robot 2018-10-24 14:46:57 -07:00 committed by GitHub
commit 86e2d2bf03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -777,6 +777,5 @@ test/integration/replicationcontroller
test/integration/scheduler
test/integration/scheduler_perf
test/integration/volume
test/list
test/utils
test/utils/image

View File

@ -33,10 +33,11 @@ import (
var (
dumpTree = flag.Bool("dump", false, "print AST")
dumpJson = flag.Bool("json", false, "output test list as JSON")
dumpJSON = flag.Bool("json", false, "output test list as JSON")
warn = flag.Bool("warn", false, "print warnings")
)
// Test holds test locations, package names, and test names.
type Test struct {
Loc string
Name string
@ -262,7 +263,7 @@ func main() {
log.Fatalf("Error walking: %v", err)
}
}
if *dumpJson {
if *dumpJSON {
json, err := json.Marshal(tests.tests)
if err != nil {
log.Fatal(err)