func agentRPCTestStopReplicationAndGetStatus(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { rp, err := client.StopReplicationAndGetStatus(ctx, tablet) compareError(t, "StopReplicationAndGetStatus", err, rp, testReplicationStatus) }
func agentRPCTestStopReplicationAndGetStatusPanic(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { _, err := client.StopReplicationAndGetStatus(ctx, tablet) expectRPCWrapLockActionPanic(t, err) }
func agentRPCTestStopReplicationAndGetStatusPanic(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { _, err := client.StopReplicationAndGetStatus(ctx, tablet) expectHandleRPCPanic(t, "StopReplicationAndGetStatus", true /*verbose*/, err) }