(t *testing.T)
| 672 | } |
| 673 | |
| 674 | func Test_Remove_LocalSuccess(t *testing.T) { |
| 675 | t.Parallel() |
| 676 | s := &mockStore{} |
| 677 | p := newTestProxy(s, &mockCluster{}) |
| 678 | |
| 679 | addr, err := p.Remove(context.Background(), &proto.RemoveNodeRequest{Id: "node1"}, nil, time.Second, false) |
| 680 | if err != nil { |
| 681 | t.Fatalf("unexpected error: %s", err) |
| 682 | } |
| 683 | if addr != "" { |
| 684 | t.Fatalf("expected empty addr, got %s", addr) |
| 685 | } |
| 686 | } |
| 687 | |
| 688 | func Test_Remove_NotLeader_NoForward(t *testing.T) { |
| 689 | t.Parallel() |
nothing calls this directly
no test coverage detected