🐛 Fix #349
This commit is contained in:
parent
d4980a0e4d
commit
2edbefd883
|
@ -34,11 +34,6 @@ func TestGetAPIPath(t *testing.T) {
|
||||||
apiPath := Go.GetAPIPath()
|
apiPath := Go.GetAPIPath()
|
||||||
|
|
||||||
v := runtime.Version()[2:]
|
v := runtime.Version()[2:]
|
||||||
if 3 < len(v) {
|
|
||||||
v = v[:4]
|
|
||||||
} else {
|
|
||||||
v = v[:3]
|
|
||||||
}
|
|
||||||
|
|
||||||
ver, err := version.NewVersion(v)
|
ver, err := version.NewVersion(v)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
|
|
Loading…
Reference in New Issue