diff --git a/zk_test.go b/zk_test.go index 86040e65..c1868ff2 100644 --- a/zk_test.go +++ b/zk_test.go @@ -1205,6 +1205,9 @@ func requireMinimumZkVersion(t *testing.T, minimum string) { minimumV, actualV := parseFn(minimum), parseFn(actualVersionStr) for i, p := range minimumV { + if len(actualV) <= i { + break + } if actualV[i] < p { t.Skipf("zookeeper required min version not met; requires: %q, actual: %q", minimum, actualVersionStr) }