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