MCPcopy
hub / github.com/nats-io/nats.go / TestContextRequestWithCancel

Function TestContextRequestWithCancel

test/context_test.go:321–329  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

319}
320
321func TestContextRequestWithCancel(t *testing.T) {
322 s := RunDefaultServer()
323 defer s.Shutdown()
324
325 nc := NewDefaultConnection(t)
326 defer nc.Close()
327
328 testContextRequestWithCancel(t, nc)
329}
330
331func TestOldContextRequestWithCancel(t *testing.T) {
332 s := RunDefaultServer()

Callers

nothing calls this directly

Calls 4

RunDefaultServerFunction · 0.70
NewDefaultConnectionFunction · 0.70
CloseMethod · 0.45

Tested by

no test coverage detected