func agentRPCTestPromoteSlaveWhenCaughtUpPanic(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { _, err := client.PromoteSlaveWhenCaughtUp(ctx, tablet, testReplicationPosition) expectRPCWrapLockActionPanic(t, err) }
func agentRPCTestPromoteSlaveWhenCaughtUp(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { rp, err := client.PromoteSlaveWhenCaughtUp(ctx, tablet, testReplicationPosition) compareError(t, "PromoteSlaveWhenCaughtUp", err, rp, testReplicationPositionReturned) }
func agentRPCTestPromoteSlaveWhenCaughtUpPanic(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { _, err := client.PromoteSlaveWhenCaughtUp(ctx, tablet, testReplicationPosition) expectHandleRPCPanic(t, "PromoteSlaveWhenCaughtUp", true /*verbose*/, err) }