func agentRpcTestScrap(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, ti *topo.TabletInfo) { err := client.Scrap(ctx, ti) if strings.Index(err.Error(), testScrapError.Error()) == -1 { t.Errorf("Unexpected Scrap result: got %v expected %v", err, testScrapError) } }