func agentRPCTestPromoteSlavePanic(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { _, err := client.PromoteSlave(ctx, tablet) expectRPCWrapLockActionPanic(t, err) }
func agentRPCTestPromoteSlavePanic(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { _, err := client.PromoteSlave(ctx, tablet) expectHandleRPCPanic(t, "PromoteSlave", true /*verbose*/, err) }
func agentRPCTestPromoteSlave(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { rp, err := client.PromoteSlave(ctx, tablet) compareError(t, "PromoteSlave", err, rp, testReplicationPosition) }
func agentRpcTestPromoteSlave(t *testing.T, client tmclient.TabletManagerClient, ti *topo.TabletInfo) { rsd, err := client.PromoteSlave(ti, time.Minute) compareError(t, "PromoteSlave", err, rsd, testRestartSlaveData) }