Skip to content

Commit eedfb59

Browse files
committed
Respect flags of testing package
`go test -c -o "perf.test"` `./perf.test --help` doesn't understand "help" flag without calling `flag.Parse` explicitly.
1 parent 5383e01 commit eedfb59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/integration/scheduler_perf/main_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ limitations under the License.
1717
package benchmark
1818

1919
import (
20+
"flag"
2021
"testing"
2122

2223
"k8s.io/kubernetes/test/integration/framework"
2324
)
2425

2526
func TestMain(m *testing.M) {
27+
flag.Parse()
2628
framework.EtcdMain(m.Run)
2729
}

0 commit comments

Comments
 (0)