func agentRPCTestRefreshState(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { err := client.RefreshState(ctx, tablet) if err != nil { t.Errorf("RefreshState failed: %v", err) } if !testRefreshStateCalled { t.Errorf("RefreshState didn't call the server side") } }
func agentRpcTestRefreshState(t *testing.T, client tmclient.TabletManagerClient, ti *topo.TabletInfo) { err := client.RefreshState(ti, time.Minute) if err != nil { t.Errorf("RefreshState failed: %v", err) } if !testRefreshStateCalled { t.Errorf("RefreshState didn't call the server side") } }
func agentRPCTestRefreshStatePanic(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { err := client.RefreshState(ctx, tablet) expectRPCWrapLockActionPanic(t, err) }
func agentRPCTestRefreshStatePanic(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { err := client.RefreshState(ctx, tablet) expectHandleRPCPanic(t, "RefreshState", true /*verbose*/, err) }