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

Function TestOldContextRequestWithDeadline

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

Source from the content-addressed store, hash-verified

397}
398
399func TestOldContextRequestWithDeadline(t *testing.T) {
400 s := RunDefaultServer()
401 defer s.Shutdown()
402
403 nc, err := nats.Connect(nats.DefaultURL, nats.UseOldRequestStyle())
404 if err != nil {
405 t.Fatalf("Failed to connect: %v", err)
406 }
407 defer nc.Close()
408
409 testContextRequestWithDeadline(t, nc)
410}
411
412func TestContextSubNextMsgWithTimeout(t *testing.T) {
413 s := RunDefaultServer()

Callers

nothing calls this directly

Calls 5

ConnectMethod · 0.80
FatalfMethod · 0.80
RunDefaultServerFunction · 0.70
CloseMethod · 0.45

Tested by

no test coverage detected