Skip to content

Commit 5c24c2c

Browse files
fix v15 tests
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
1 parent 48ae3d8 commit 5c24c2c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

go/vt/vtctl/reparentutil/emergency_reparenter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ func TestEmergencyReparenter_reparentShardLocked(t *testing.T) {
19401940
},
19411941
keyspace: "testkeyspace",
19421942
shard: "-",
1943-
cells: []string{"zone1"},
1943+
ts: memorytopo.NewServer("zone1"),
19441944
shouldErr: true,
19451945
errShouldContain: "primary zone1-0000000100 is not equal to expected alias zone1-0000000101",
19461946
},

go/vt/vtctl/reparentutil/planned_reparenter_flaky_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3278,6 +3278,7 @@ func TestPlannedReparenter_reparentShardLocked(t *testing.T) {
32783278
},
32793279
{
32803280
name: "expected primary mismatch",
3281+
ts: memorytopo.NewServer("zone1"),
32813282
tmc: &testutil.TabletManagerClient{},
32823283
shards: []*vtctldatapb.Shard{
32833284
{
@@ -3347,7 +3348,7 @@ func TestPlannedReparenter_reparentShardLocked(t *testing.T) {
33473348
}, tt.tablets...)
33483349

33493350
if len(tt.shards) > 0 {
3350-
testutil.AddShards(ctx, t, ts, tt.shards...)
3351+
testutil.AddShards(ctx, t, tt.ts, tt.shards...)
33513352
}
33523353

33533354
if !tt.unlockTopo {

0 commit comments

Comments
 (0)