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

Function TestGetRemoteInvalid

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

Source from the content-addressed store, hash-verified

244}
245
246func TestGetRemoteInvalid(t *testing.T) {
247 nodes, err := connectedTestNodes(2, 1)
248 defer tearDownNodes(nodes)
249 if err != nil {
250 t.Fatalf("connectedTestNodes(2, 1) failed: %v", err)
251 }
252
253 n1 := nodes[0]
254 n2 := nodes[1]
255
256 var resp ttlstore.KeyData
257 args := StorageArgs{Key: "foo", ExplicitPeer: n2.name}
258 if err := n1.server.Get(args, &resp); err == nil {
259 t.Errorf("Get(%+v) didn't return error", args)
260 }
261}

Callers

nothing calls this directly

Calls 3

connectedTestNodesFunction · 0.85
tearDownNodesFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected