]> Cypherpunks repositories - gostls13.git/commit
cmd/api: make the test more robust
authorShenghou Ma <minux@golang.org>
Wed, 8 Apr 2015 08:27:58 +0000 (04:27 -0400)
committerMinux Ma <minux@golang.org>
Wed, 8 Apr 2015 08:46:42 +0000 (08:46 +0000)
commita50b24c649f09e5b65e707fc634637aa984b9d96
tree2d4c9ef1977e2e8c019f08c7a1482c7891fd08cf
parent63d72f69011a47234d61380849c466f416459d8c
cmd/api: make the test more robust

Previously, the TestCompareAPI test would fail if runtime.Version()
is "dev", or, more importantly, "go1.5"; because compareAPI depends
on runtime.Version and -allow_new flag. Move that logic out make
its test more robust.

Change-Id: I8f40daa1838b8acd26adac8848762d95315053b0
Reviewed-on: https://go-review.googlesource.com/8622
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/api/goapi.go
src/cmd/api/goapi_test.go