MCPcopy
hub / github.com/rqlite/rqlite / Test_Remove_LocalSuccess

Function Test_Remove_LocalSuccess

proxy/proxy_test.go:674–686  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

672}
673
674func 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
688func Test_Remove_NotLeader_NoForward(t *testing.T) {
689 t.Parallel()

Callers

nothing calls this directly

Calls 2

newTestProxyFunction · 0.85
RemoveMethod · 0.65

Tested by

no test coverage detected