MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / TestCall_OfflineNode

Function TestCall_OfflineNode

internal/nodehub/hub_test.go:271–279  ·  view source on GitHub ↗

---- 测试:ErrNodeOffline ----

(t *testing.T)

Source from the content-addressed store, hash-verified

269// ---- 测试:ErrNodeOffline ----
270
271func TestCall_OfflineNode(t *testing.T) {
272 hub := New(Options{PeerExtractor: mdPeerExtractor})
273 _ = newTestEnv(t, hub)
274
275 _, err := hub.Call(context.Background(), "ghost", "x", nil)
276 if !errors.Is(err, ErrNodeOffline) {
277 t.Fatalf("expected ErrNodeOffline, got %v", err)
278 }
279}
280
281// ---- 测试:并发 Call ----
282

Callers

nothing calls this directly

Calls 3

newTestEnvFunction · 0.85
NewFunction · 0.70
CallMethod · 0.65

Tested by

no test coverage detected