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

Function TestConnectVerbose

test/conn_test.go:841–853  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

839}
840
841func TestConnectVerbose(t *testing.T) {
842 s := RunDefaultServer()
843 defer s.Shutdown()
844
845 o := nats.GetDefaultOptions()
846 o.Verbose = true
847
848 nc, err := o.Connect()
849 if err != nil {
850 t.Fatalf("Should have connected ok: %v", err)
851 }
852 nc.Close()
853}
854
855func getStacks(all bool) string {
856 var (

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected