File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
pkg/ccl/kvccl/kvtenantccl/upgradeccl Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -346,20 +346,21 @@ func TestTenantUpgradeFailure(t *testing.T) {
346
346
347
347
v0 := clusterversion .MinSupported .Version ()
348
348
v2 := clusterversion .Latest .Version ()
349
- // v1 needs to be between v0 and v2. Set it to the minor release
350
- // after v0 and before v2 .
349
+ // v1 needs to be between v0 and v2. Set it to the first version with a
350
+ // different major/minor from v0 .
351
351
var v1 roachpb.Version
352
352
for _ , version := range clusterversion .ListBetween (v0 , v2 ) {
353
- if version .Minor != v0 .Minor {
353
+ if version .Major != v0 . Major && version . Minor != v0 .Minor {
354
354
v1 = version
355
355
break
356
356
}
357
357
}
358
- if v1 == (roachpb.Version {}) {
358
+ if v1 == (roachpb.Version {}) || v1 == v2 {
359
359
// There is no in-between version supported; skip this test.
360
360
skip .IgnoreLint (t , "test can only run when we support two previous releases" )
361
361
}
362
362
363
+ t .Logf ("v0=%s v1=%s v2=%s" , v0 , v1 , v2 )
363
364
t .Log ("starting server" )
364
365
ctx := context .Background ()
365
366
settings := cluster .MakeTestingClusterSettingsWithVersions (
You can’t perform that action at this time.
0 commit comments