MCPcopy Create free account
hub / github.com/dadgar/onecache / TestRemoveRemoteInvalid

Function TestRemoveRemoteInvalid

onecache/onecache_rpc_test.go:199–214  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

197}
198
199func TestRemoveRemoteInvalid(t *testing.T) {
200 nodes, err := connectedTestNodes(2, 1)
201 defer tearDownNodes(nodes)
202 if err != nil {
203 t.Fatalf("connectedTestNodes(2, 1) failed: %v", err)
204 }
205
206 n1 := nodes[0]
207 n2 := nodes[1]
208
209 var resp struct{}
210 args := StorageArgs{Key: "foo", ExplicitPeer: n2.name}
211 if err := n1.server.Remove(args, &resp); err == nil {
212 t.Errorf("Remove(%+v) didn't return error", args)
213 }
214}
215
216func TestGetRemote(t *testing.T) {
217 nodes, err := connectedTestNodes(2, 1)

Callers

nothing calls this directly

Calls 3

connectedTestNodesFunction · 0.85
tearDownNodesFunction · 0.85
RemoveMethod · 0.45

Tested by

no test coverage detected